This is the mail archive of the
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" <firstname.lastname@example.org>
> Cc: "Neeraj kushwaha" <email@example.com>, firstname.lastname@example.org
> On Feb 4, 2008 12:31 PM, Eli Zaretskii <email@example.com> 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)?