From a0f3a4c646cce619b6c5392b4ec8dcceeb5729ba Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Mon, 4 Jul 2022 11:25:42 +0100 Subject: opcodes/avr: Implement style support in the disassembler * disassemble.c: (disassemble_init_for_target): Set created_styled_output for AVR based targets. * avr-dis.c: (print_insn_avr): Use fprintf_styled_ftype instead of fprintf_ftype throughout. (avr_operand): Pass in and fill disassembler_style when parsing operands. --- opcodes/disassemble.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opcodes/disassemble.c') diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 17cf6378890..9c0dacaf391 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -618,6 +618,11 @@ disassemble_init_for_target (struct disassemble_info * info) info->disassembler_needs_relocs = true; break; #endif +#ifdef ARCH_avr + case bfd_arch_avr: + info->created_styled_output = true; + break; +#endif #ifdef ARCH_csky case bfd_arch_csky: info->symbol_is_valid = csky_symbol_is_valid; -- cgit v1.2.1