[PATCH] [ARC] Pass arc_opcode to GDB as an architecture specific data
Claudiu Zissulescu
Claudiu.Zissulescu@synopsys.com
Thu Oct 6 13:02:00 GMT 2016
> 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
More information about the Binutils
mailing list