On Tue, 23 Feb 1999, Wichert Akkerman wrote: > Previously Joseph Carter wrote: > > gdb gives no usable output... > > Maybe you stripped the file? I can perfectly debug code that has been > optimized with -O2.. (in fact I do most debugging on optimized code, I'm > simply to lazy to remove that flag I guess :) )
Indeed, gcc seems to optimize unagressively enough and gdb does not usually display things in a manner that can reveal the issues with optimization. Most of the problems crop up when you are single steping and watching variables, then you can see some really weird effects. Jason