public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] opcodes/m68k: enable libopcodes styling for GDB
@ 2023-02-25 10:21 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2023-02-25 10:21 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82341e9798202fa94b801b1428a8bf68dc80149a

commit 82341e9798202fa94b801b1428a8bf68dc80149a
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Sat Feb 25 10:16:34 2023 +0000

    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.

Diff:
---
 opcodes/disassemble.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index ff8cb87f599..93052e75088 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-25 10:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-25 10:21 [binutils-gdb] opcodes/m68k: enable libopcodes styling for GDB Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).