opcodes/riscv: implement style support in the disassembler
authorAndrew Burgess <aburgess@redhat.com>
Sat, 5 Feb 2022 11:25:24 +0000 (11:25 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 4 Apr 2022 12:10:52 +0000 (13:10 +0100)
commit49d31dc98e3f4bb15553bab9d903c542287446d4
treeb17343477222d36703b63121d675bd467d6342de
parent60a3da00bd5407f07d64dff82a4dae98230dfaac
opcodes/riscv: implement style support in the disassembler

Update the RISC-V disassembler to supply style information.  This
allows objdump to apply syntax highlighting to the disassembler
output (when the appropriate command line flag is used).

Ignoring colours, there should be no other user visible changes in the
output of the disassembler in either objdump or gdb.

opcodes/ChangeLog:

* disassembler.c (disassemble_init_for_target): Set
created_styled_output for riscv.
* riscv-dis.c: Changed throughout to use fprintf_styled_func
instead of fprintf_func.
opcodes/disassemble.c
opcodes/riscv-dis.c