This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH ARM add new set/show arm commands
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 25 Mar 2003 10:19:41 -0500
- Subject: Re: PATCH ARM add new set/show arm commands
- References: <200303251222.h2PCMqF08079@pc960.cambridge.arm.com>
> Are you suggesting I should change the option name to "set arm
> disassembler"? If so, I've no problem with that. If not, what are you
Yes, just "set arm disassembler". Er, actually, is "set arm
disassembler-options" better? Either name is more in line with the
existing objdump --disassembler-options option.
I'm not entirely happy with the idea of forcing this method to be
identical to the objdump machinery. In particular, the current objdump
flags available to gdb are all prefixed by reg-names- and in gdb this is
not accepted by gdb.
Further, there is another option in the arm disassembler-options command
that is not available to gdb -- force-thumb. Something like this is
needed for gdb, but not at this level. For gdb a proper flag that is
visible to the rest of the debugger, not just the assembler is needed.
Further, that flag needs to be a 3-state one, ARM, Thumb and auto.
Forcing the state will affect things like breakpoint insertion etc.
I think I'd rather keep the option as "set arm disassembler" to make these
distinctions clear. Thoughts?
M'kay. Can you add a note to that effect to the bug report (the i386
needs a similar treatment).
Andrew