Mail Archives: djgpp-workers/2002/12/24/00:56:46
On Mon, 23 Dec 2002, Richard Dawe wrote:
> I've found the problem or, at least, a cause. I had compiled lib/*.c with a
> different version of gcc, so it had different debugging info to compiled
> src/*.c - stabs ("dbx") vs. DWARF-2. Does gdb support this? (I don't see why
> not, but perhaps it has not been tested much.)
Thanks for digging into this. It doesn't surprise me that GDB has
trouble working with mixed stabs/dwarf-2 debug info: I doubt if anybody
has ever tried to debug such a program.
Please try to come up with a minimal complete program and compilation
procedure that reproduces this problem. It would be nice if the way the
library was compiled had no effect on the outcome; ideally, the library
should be compiled with no debug info at all.
Armed with such a test case, please post the details to the GDB mailing
list <gdb AT sources DOT redhat DOT com>. (I think several bugs which led to
crashes were fixed in symtab.c and related code lately, but I don't know
whether this bug is one of them. However, it does mean that someone is
actively working on symtab.c, so this might be a good time to report
such bugs.)
- Raw text -