This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: value of local variable stored in register
> Date: Tue, 5 Feb 2008 11:42:32 -0800
> From: "Jim Blandy" <jimb@red-bean.com>
> Cc: "Neeraj kushwaha" <kushneeraj@gmail.com>, gdb@sourceware.org
>
> 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.
Can you show an example?
Also, is this problem relevant to the case in point (the OP presented
a test program)?