X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Fri, 21 Dec 2001 09:09:16 +0200 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: Richard Dawe Cc: DJGPP workers Subject: Re: gcc 3.0.2 and -ggdb debugging info In-Reply-To: <3C227C35.8DC5059@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Fri, 21 Dec 2001, Richard Dawe wrote: > Hello. > > Does the '-ggdb' option work with gcc 3.0.2? I've been trying to debug a > program compiled with the '-ggdb3' option with gdb 4.18 and 5.0 and I get > a 'No line known for main' (or similar wording) when I do 'l main'. I > tried compiling with just '-ggdb', but I got the same result. When I fall > back on compiling with '-g', I can debug again. At least I have used it to debug some libstdc++ problems (filebuf has problems with DOS style text files, not hopefully fixed as far as I could in port of gcc-3.0.2. I used prerelease version of gdb-5.1 and now release of gdb-5.1. > > So, is this a toolchain issue (gdb 5.0 doesn't support something gcc 3.0.2 > does) or is there a bug in gcc 3.0.2's handling of '-ggdb'? > Andris