This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Disassembling ARM and Thumb code
On Fri, 2005-05-06 at 17:35, Shaun Jackman wrote:
> 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
>
Ug. Doesn't really make sense for Thumb-2. Nor does it make sense for
the 'disassemble' command.
> Another option is...
>
> set disassembly-flavor arm
> set disassembly-flavor thumb
less objectionable, provided you avoid 'flavor' which is irritating to
those who use British English spelling.
I'd go for
set disassembly-isa {auto|arm|thumb}
R.