This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] [ARC] Pass arc_opcode to GDB as an architecture specific data


> That's what I wanted to get - something similar to aarch64_decode_insn, but
> ARC binutils developers didn't wanted to do things this way, and told me
> instead to use arc_get_disassembler() which returns pointer to a
> print_insn_arc().  Given the imposed constraints, I've preferred to do this
> one-line change to binutils and put the rest of instruction decoding in
> the GDB proper, to minimize binutils changes. arc_opcode itself is bit
> problematic in this context because it is optimized for instruction printing
> and not for instruction analysis, but it is still much better than trying to
> write disassembler from the scratch

Maybe the best is to come with a proper binutils patch and move the gdb mods into arc-dis.c. 

Any contribution is welcome,
Claudiu

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