Re: Strange gdb behavior with optimized code

2002-04-08 Thread Neal H Walfield
> I noticed a strange behaviour of gdb when debugging code that had been > compiled with `-O2 -mpentium': when stepping, gdb sometimes seems to get lost > in the code (goes back to the same line several times for instance). This is normal with optimized code.

Strange gdb behavior with optimized code

2002-04-08 Thread Ludo'
Hi, I noticed a strange behaviour of gdb when debugging code that had been compiled with `-O2 -mpentium': when stepping, gdb sometimes seems to get lost in the code (goes back to the same line several times for instance). I'm not sure this is really a bug since this is probably not recommended to