Mail Archives: djgpp-workers/2001/12/26/15:20:16
> Date: Wed, 26 Dec 2001 17:46:02 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
>
> > This is, of course, your problem, Richard: your version of GDB
> > doesn't know about DWARF2. So you must either download the GDB
> > sources from the GNU FTP site and build it (it should build with
> > DJGPP right out of the box, if you follow the instructions in the
> > djgpp/README file), or use -gstabs+.
>
> My connection to the Internet is a 56kbps modem, so I think I'll just use
> -gstabs+.
If it's important, I can let you have my GDB 5.1 binary.
> > But I also see another possible problem with your system
> > configuration: when I type "gdb zippo-ggdb3.exe", GDB 5.1 complains
> > thusly:
> >
> > Dwarf Error: wrong version in compilation unit header
> >
> > So I suspect that either your GCC or Binutils version is not the
> > latest one, and you have some bug in generating the DWARF2 debug info.
> > Please see if you need to upgrade any of these two packages.
>
> I don't see this error with gdb 5.0.
That's because GDB 5.0 doesn't know about DWARF2, so it doesn't try
to parse the DWARF2 info.
> I've put new versions of the zippo executable built with -ggdb3 here:
>
> http://www.phekda.freeserve.co.uk/richdawe/djgpp/gdb/
I cannot use those: they are in some strange format, so it seems. The
Web page says they are *.gz files, but Gzip says they are not in gzip
format. Looking at the files, I see that they begin with "MZ", so I
thought they are uncompressed executables and tried to debug them with
GDB. But GDB says "unrecognized file format". So I'm stumped.
- Raw text -