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 _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev