This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, RFC] Add support for choosing disassembler cpu in GDB for POWER.
On 10/28/16 9:10 AM, Pedro Alves wrote:
Maybe not. Where are the per-arch settings stored?
They're stored in the gdbarch...
Consider a multi-arch/combined gdb. If I do:
(gdb) thread 1.1 # PPC
(gdb) set disassembler-options power9
(gdb) thread 2.1 # ARM
(gdb) set disassembler-options reg-names-gcc
(gdb) thread 1.1 # PPC
(gdb) show disassembler-options
and the last "show" still remembers I had chosen
power9, then I'm happy without the arch specific command.
...which should support the above, as the gdbarch is different
for each of these.
Maybe it doesn't even make sense to consider this
setting per-arch. Maybe per-inferior would be better.
I have no idea how to do that, so I think I'll stick with
a per-arch setting and maybe down the line, someone can
extend it to that.
Peter