Mail Archives: djgpp-workers/2002/12/09/12:48:12
Hello.
[ My mailer truncated the message before. ]
Richard Dawe wrote:
>
> Andrew Cottrell wrote:
[snip]
> > b.. gdb doesn't seem to work with DWARF debugging information. DWARF
> > makes debugging C++ programs a lot easier.
> > I wonder if the GDB was related to the GCC 3.0 and nor having a GDB 5.2
> > available a long time ago. It is my understanding by reading the GCC
> > readme file that Andris has made DWARF support in GCC the standard and
> > the GDB 5.2.1 supports this.
>
> I will test this out - new gdb + new gcc.
[snip]
Nope, it's still broken. I tested with gcc 3.2.1, gdb 5.2.1 and one of my
DJGPP development trees. I got the following, when I tried to debug a program
built against the libc tree with DWARF-2 debug info:
"Dwarf Error: bad offset (0x15e00) in compilation unit header (offset 0x0 +
6)."
My development tree was built with -pg and -g in the src/gcc{,-l}.opt files. I
tried replacing -g with -gdwarf-2 and rebuilt, to be sure, but the behaviour
was the same.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -