This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: value of local variable stored in register
On Feb 4, 2008 12:31 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> (gdb) info address c
>
> This will show where the variable c is stored. If it says it's in a
> register, print the value of that register.
The output of 'info address' isn't very helpful if c has a non-trivial
DWARF location expression. I've been intending to fix this for quite
some time now, but have never gotten around to it. :(