gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debug as default...


From: Andrew Pinski
Subject: Re: Debug as default...
Date: Tue, 19 Sep 2006 21:48:35 -0700

On Wed, 2006-09-20 at 06:33 +0200, Nicola Pero wrote:
> >> Anyway, let me know if '-g -O2' causes problems, I presume if the '-O2'
> >> seriously confuse the debugger let me know and we can revert that change,
> >> or maybe use '-g -O' ?
> >
> > Use of -O2 makes debugging almost impossible ... with that
> > combination, in gdb, you can (mostly) follow program flow, but you
> > can hardly ever examine variables.
> 
> Ok ... makes sense, I'll take the -O% out again then ;-)

Actually that is not 100% acturate. It makes it impossible on stabs
targets but with dwarf2/3 (which is default for GNU/Linux), GCC 4.0 and
above do a better job at outputting debug info for -O2.

-- Pinski





reply via email to

[Prev in Thread] Current Thread [Next in Thread]