This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Disassembling ARM and Thumb code
On 5/5/05, Daniel Jacobowitz <drow@false.org> wrote:
> > Hehe. I agree, that's probably not the best plan. However, for the
> > unique case of 'x/i $pc' it does make a certain amount of sense to use
> > the CPSR as a hint. I'm not sure if it's worth the special case
> > though. An explicit switch to the x/i and disas commands to specify
> > ARM or Thumb dissection is very much a good idea though.
>
> Yes, probably; if you have a good idea for the syntax to use, then
> maybe we can add it. I don't much like the idea of target-specific
> modifiers.
I like the look of this:
x/i for intelligent
x/iw for ARM
x/ih for Thumb
Another option is...
set disassembly-flavor arm
set disassembly-flavor thumb
Cheers,
Shaun