This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: show register assignment
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sources dot redhat dot com
- Date: Wed, 5 Apr 2006 09:23:46 -0400
- Subject: Re: show register assignment
- References: <20060405090421.GA12506@radix50.net>
On Wed, Apr 05, 2006 at 11:04:21AM +0200, Baurzhan Ismagulov wrote:
> Hello,
>
> I'm using the GNU toolchain to create binaries for the ARM architecture
> (I build with -g -O2, debug info is presumably dwarf2). With "objdump -S
> file.o", I'm able to see which source lines generate which code. The
> Lauterbach debugger is also able to show which variable a register is
> holding, like this: "msr cpsr_c, r4 ; cpsr_c, flags". Is there a way to
> see this with gdb or objdump?
Not readily, although you can see the location of a variable by using
"info address". That's a neat idea.
--
Daniel Jacobowitz
CodeSourcery