Re: [gnome-love] Weird behaviour debugging with GDB



On Sun, 2005-04-10 at 23:30 +0200, Jaap Haitsma wrote:
Elijah Newren wrote:
Sounds like you're trying to debug code that has been optimized (e.g.
compiled with '-O2').  It's much easier to debug code compiled without
such optimization flags.

Thanks, already thought of that. ;-) I just compiled with -g, or does 
that not disable all optimisation.

No, it does not.  Use -O0 to force optimizations off (that should be the
default, though).

-- 
Sean Middleditch <elanthis awesomeplay com>




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