show register assignment
Daniel Jacobowitz
drow@false.org
Wed Apr 5 13:23:00 GMT 2006
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
More information about the Gdb
mailing list