Still problems with gdb and nested functions.
Eli Zaretskii
eliz@gnu.org
Tue Feb 22 20:56:00 GMT 2005
> cc: gdb@sources.redhat.com
> Date: Tue, 22 Feb 2005 12:15:11 -0800
> From: Paul Hilfinger <hilfingr@EECS.Berkeley.EDU>
>
> > No symbol "k" in current context.
>
> I presume you have confirmed that k is actually there (since it is set
> only from a constant, it could be folded away even without fancy
> optimization).
AFAIK, GCC never optimizes _anything_ under -O0, not even redundant
register reloads.
Anyway, the disassembly I posted shows that k does in fact exist and
is stored on the stack, as expected.
More information about the Gdb
mailing list