X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3C2A0CDA.865087B5@phekda.freeserve.co.uk> Date: Wed, 26 Dec 2001 17:46:02 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: [snip] > It seems that -ggdb now means -gdwarf-2, i.e. the default > GDB-friendly debug format is DWARF2. That's what the "info source" > GDB command tells me when I debug the ``simple'' program compiled > with -ggdb3 using GCC 3.0.2. > > Andris, is that correct? If so, I think this change was a bit > premature. The problem is that, currently, the DJGPP port of GDB > groks DWARF2 only in GDB 5.1, so users will not be able to use -ggdb > until the ported GDB 5.1 is released. Ah, that explains a lot. 8) > 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+. > (I probably won't release a port of GDB 5.1, but will wait a bit until > v5.1.1 is released. That's because v5.1 has a few nasty problems in > C++ debugging, so I don't want to release a buggy version.) Fair enough. > 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. I have gcc 3.0.2, gdb 5.0 and binutils 2.11.2. I upgraded to gdb 5.0 the other day, when I hit this problem. My gcc 3.0.2 binaries are pretty recent too - they should have the fix Andris made for the problem with compiling Allegro. My binutils 2.11.2 was dated mid-July, but I just upgraded to the latest version (November 15) and I still get no warning message from gdb 5.0. I've put new versions of the zippo executable built with -ggdb3 here: http://www.phekda.freeserve.co.uk/richdawe/djgpp/gdb/ There are two versions - built with gcc 3.0.2 and 3.0.3. The build.log file is also there. If you have any time, could you see if you get the same error from gdb 5.1 please? Thanks for the help, bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]