how to examine data with compiler optimization option set?

Andreas Schwab
Thu Sep 4 08:01:00 GMT 2008

Robert Dewar <> writes:

> Well you always had local variables disappearing in earlier versions
> but enough worked so you could debug, in particular parameters were
> always available and reliable.

If parameters are passed in registers they are very likely to get lost.
Even on i386 parameters sometimes get passed in registers, eg. when
calling local functions.


Andreas Schwab, SuSE Labs,
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

More information about the Gdb mailing list