aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-02-25 10:16:34 +0000
committerAndrew Burgess <aburgess@redhat.com>2023-02-25 10:20:01 +0000
commit82341e9798202fa94b801b1428a8bf68dc80149a (patch)
tree13f78525e2ae60f06647d7fdf14b7835794af0b5
parent95ebc6fdec5780bf59685739cdd55cd41d0f55ac (diff)
downloadbinutils-82341e9798202fa94b801b1428a8bf68dc80149a.zip
binutils-82341e9798202fa94b801b1428a8bf68dc80149a.tar.gz
binutils-82341e9798202fa94b801b1428a8bf68dc80149a.tar.bz2
opcodes/m68k: enable libopcodes styling for GDB
The following commit added libopcodes styling for m68k: commit c22ff449275c91e4842bb10c650e83c572580f65 Date: Tue Feb 14 18:07:19 2023 +0100 opcodes: style m68k disassembler output but didn't set disassemble_info::created_styled_output in disassemble.c, which is needed in order for GDB to start using the libopcodes based styling. This commit fixes this small oversight. GDB now styles correctly.
-rw-r--r--opcodes/disassemble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index ff8cb87..93052e7 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -652,6 +652,11 @@ disassemble_init_for_target (struct disassemble_info * info)
info->skip_zeroes = 32;
break;
#endif
+#ifdef ARCH_m68k
+ case bfd_arch_m68k:
+ info->created_styled_output = true;
+ break;
+#endif
#ifdef ARCH_mep
case bfd_arch_mep:
info->skip_zeroes = 256;