* show register assignment
@ 2006-04-05 9:04 Baurzhan Ismagulov
2006-04-05 13:23 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Baurzhan Ismagulov @ 2006-04-05 9:04 UTC (permalink / raw)
To: gdb
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?
Thanks in advance,
Baurzhan.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: show register assignment
2006-04-05 9:04 show register assignment Baurzhan Ismagulov
@ 2006-04-05 13:23 ` Daniel Jacobowitz
2006-04-05 15:15 ` Baurzhan Ismagulov
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-04-05 13:23 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: show register assignment
2006-04-05 13:23 ` Daniel Jacobowitz
@ 2006-04-05 15:15 ` Baurzhan Ismagulov
0 siblings, 0 replies; 3+ messages in thread
From: Baurzhan Ismagulov @ 2006-04-05 15:15 UTC (permalink / raw)
To: gdb
Hello Daniel,
On Wed, Apr 05, 2006 at 09:23:46AM -0400, Daniel Jacobowitz wrote:
> Not readily, although you can see the location of a variable by using
> "info address".
Thanks, this helps a bit.
With kind regards,
Baurzhan.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-05 15:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05 9:04 show register assignment Baurzhan Ismagulov
2006-04-05 13:23 ` Daniel Jacobowitz
2006-04-05 15:15 ` Baurzhan Ismagulov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox