This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Misc; Was: [RFA]: x86_64 target files
>> Have a look at the ARM which queries opcodes for a list of disassembly variants
>> instead of duplicating those variants here.
>>
>
> I have looked at ARM and there is list of dissassembly flavors
> (register set names) obtained from binutils. But in i386/x86_64 case there
> is no way how to get list of flavors. I am not sure what do you mean...
> Changes in binutils?
Hmm, the interface isn't as clean as I remembered :-). Yes, it would
mean getting a change into binutils.
The theory is that GDB knows nothing about the assembler except how to
call it. It defers to opcodes for things like assembler flavour names -
this guarentees that objdump and GDB have a consistent interface. For
you, it is looking like the best thing is to file a PR and follow it up
later.
One side thought, I'm surprised that there isn't a simple ``set
disassembler ...'' command.
Andrew