This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Disassembling ARM and Thumb code
- From: Daniel Jacobowitz <drow at false dot org>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 5 May 2005 21:55:59 -0400
- Subject: Re: Disassembling ARM and Thumb code
- References: <7f45d93905050517053a33f3c9@mail.gmail.com>
On Thu, May 05, 2005 at 05:05:56PM -0700, Shaun Jackman wrote:
> 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?
How is it marked as Thumb in the binary?
GDB does not use the current CPSR value when disassembling; that way
lies madness.
--
Daniel Jacobowitz
CodeSourcery, LLC