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/9/05, Richard Earnshaw <rearnsha@gcc.gnu.org> wrote:
> On Fri, 2005-05-06 at 17:35, Shaun Jackman wrote:
> > 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.
x/ia for ARM/Thumb-2 and x/it for Thumb then. Even with a 'set ...
{arm, thumb}' command, a quick-to-type and
quick-override-of-the-default x/i style command is useful.
> > 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.
I agree entirely, but I'd guess that disassembly-flavor has been
around for a while. Should the previous spelling be deprecated?
objdump already has a name for this option:
set disassembler-options {intel, att, force-thumb, ...}
I'd prefer simply `thumb' to `force-thumb', but parallelism between
tools is a healthy goal.
Cheers,
Shaun