diff options
author | Marcus Nilsson <brainbomb@gmail.com> | 2022-07-04 11:25:42 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-07-04 11:25:42 +0100 |
commit | a0f3a4c646cce619b6c5392b4ec8dcceeb5729ba (patch) | |
tree | 54716a654d3dbfee43276ff1aaa730c4a281bc1a /opcodes/disassemble.c | |
parent | 2c474c46943e5242f356a0c0676e2f7bd223c8a9 (diff) | |
download | binutils-gdb-a0f3a4c646cce619b6c5392b4ec8dcceeb5729ba.tar.gz |
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.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |