This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: show register assignment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]