how to examine data with compiler optimization option set?

Michael Snyder
Wed Sep 3 00:04:00 GMT 2008 wrote:
> Yes, I knew that the optimization option removes the visibility for a, b and c.
> But GDB user manual seemed to say that you can still view them with providing
> -gstabs or -gdwarf2 option, in addition to the -O[1|2|3] option you might want
> to keep.

What it means to say is that you MIGHT still be able
to view them, if you happen to get lucky.

It does not offer any guarantee.

More information about the Gdb mailing list