This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug disappears if compiled with -O0


Hello Michael and Eli,

On Sun, Jul 25, 2004 at 11:10:33PM -0400, Michael Chastain wrote:
> gdb can debug code generated with gcc -g -O2.  However, when debugging
> optimized code, things like "next" appear to skip around, and variables
> sometimes don't contain the values that you think that they should.

This was the very reason why I wanted to use -O0 :) .


> You didn't mention what language your library is written in.

C++.


> If the bug truly is a code generation bug, then you will need to read
> assembly language to isolate the bug.

I will as soon as I'm able to locate it. Could it be anything other than
an optimization bug? The problem is reported also for gcc 2.95.4 on
stable.


With kind regards,
Baurjan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]