This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, RFC] Add support for choosing disassembler cpu in GDB for POWER.


On 10/28/2016 03:53 PM, Peter Bergner wrote:

> I didn't realize we could have multiple gdbarchs for the same
> arch live at the same time.  Do you have a suggestion on how
> to fix this?  Maybe each arch will have its own *-tdep.c global
> var to hold it and maybe store a pointer to that in the gdbarch?

Yeah, that sounds like the simplest way to handle it.

BTW, I'm also not sure about saying "default" in "show disassembler-options".
I don't think "set disassembler-options default" would work?
Do we still need that given the option is no longer described in
terms of cpus?

Related, "set disassembler-options" should work to clear options.
I couldn't tell whether it works from a quick skim over your
latest patch.

Thanks a lot for working on this, BTW.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]