X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Wed, 26 Dec 2001 22:18:20 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Richard Dawe Message-Id: <2947-Wed26Dec2001221820+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <3C2A0CDA.865087B5@phekda.freeserve.co.uk> (message from Richard Dawe on Wed, 26 Dec 2001 17:46:02 +0000) Subject: Re: gcc 3.0.2 and -ggdb debugging info References: <3C227C35 DOT 8DC5059 AT phekda DOT freeserve DOT co DOT uk> <3C25C254 DOT 2F6BC615 AT is DOT elta DOT co DOT il> <3C29C648 DOT 87B6170C AT phekda DOT freeserve DOT co DOT uk> <1858-Wed26Dec2001162338+0200-eliz AT is DOT elta DOT co DOT il> <3C2A0CDA DOT 865087B5 AT phekda DOT freeserve DOT co DOT uk> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Wed, 26 Dec 2001 17:46:02 +0000 > From: Richard Dawe > > > 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.