public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Disassembling ARM and Thumb code
@ 2005-05-06  0:06 Shaun Jackman
  2005-05-06  1:56 ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Shaun Jackman @ 2005-05-06  0:06 UTC (permalink / raw)
  To: gdb

My ARM7TDMI processor is currently in Thumb mode, but the x/i command
dissects the instruction as an ARM instruction. The symbol
rdp_getargvsp is a Thumb symbol added using add-symbol-file [elf
binary here]. What is the command to disassemble a given memory
location as a Thumb instruction?

Thanks,
Shaun

(gdb) p/x $cpsr
$10 = 0x4000003f
(gdb) x/i $pc
0x20004dc <rdp_getargvsp>:      cmpcs   r4, #67108864   ; 0x4000000
(gdb)
0x20004e0 <rdp_getargvsp+4>:    strmibt r2, [r9], -r0, lsl #8

$ arm-elf-gdb --version
GNU gdb 6.2.1
...
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-05-09 16:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-06  0:06 Disassembling ARM and Thumb code Shaun Jackman
2005-05-06  1:56 ` Daniel Jacobowitz
2005-05-06  3:35   ` Shaun Jackman
2005-05-06  4:08     ` Daniel Jacobowitz
2005-05-06 16:35       ` Shaun Jackman
2005-05-09 12:48         ` Richard Earnshaw
2005-05-09 16:07           ` Shaun Jackman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).