gdb: handle dis_style_sub_mnemonic disassembler style
authorAndrew Burgess <aburgess@redhat.com>
Mon, 25 Jul 2022 13:26:24 +0000 (14:26 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 25 Jul 2022 13:26:24 +0000 (14:26 +0100)
In commit:

  commit 4f46c0bc36471b725de0253bfec1a42a36e2c5c5
  Date:   Mon Jul 4 17:45:25 2022 +0100

      opcodes: add new sub-mnemonic disassembler style

I added a new disassembler style dis_style_sub_mnemonic, but forgot to
add GDB support for this style.  Fix this oversight in this commit.

gdb/disasm.c

index cf27a32fbe74bd69670a0630cdf0da1f5103ad20..db6724757ac92b502abe68de42d0cc71531d7598 100644 (file)
@@ -296,6 +296,7 @@ gdb_printing_disassembler::fprintf_styled_func (void *dis_info,
   switch (style)
     {
     case dis_style_mnemonic:
+    case dis_style_sub_mnemonic:
     case dis_style_assembler_directive:
       fputs_styled (txt, disasm_mnemonic_style.style (), stream);
       break;