This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: Misc; Was: [RFA]: x86_64 target files


Andrew Cagney <ac131313@cygnus.com> writes:

>>> 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.

I can try to take care of this in binutils.  You suggest something
like get_arm_regnames in opcodes/arm-dis.c I guess?

I'll look tomorrow into this,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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