diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-07-05 14:17:14 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-07-08 13:14:33 +0100 |
commit | ec54dc915f42fa6f0da9902c333623f71d7aa5a3 (patch) | |
tree | 450f1eb4af3c40230f72ba270f992216ef115b1f /opcodes/disassemble.c | |
parent | 5bbe6ec5b155886cab036f15ec65ca1476c3bee2 (diff) | |
download | binutils-gdb-ec54dc915f42fa6f0da9902c333623f71d7aa5a3.tar.gz |
libopcodes/s390: add support for disassembler styling
This commit adds disassembler style to the libopcodes s390
disassembler. This conversion was pretty straight forward, I just
converted the fprintf_func calls to fprintf_styled_func calls and
added an appropriate style.
For testing the new styling I just assembled then disassembled the
source files in gas/testsuite/gas/s390 and manually checked that the
styling looked reasonable.
If the user does not request styled output from objdump, then there
should be no change in the disassembler output after this commit.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 9c0dacaf391..bd37f042b31 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -721,6 +721,7 @@ disassemble_init_for_target (struct disassemble_info * info) #ifdef ARCH_s390 case bfd_arch_s390: disassemble_init_s390 (info); + info->created_styled_output = true; break; #endif #ifdef ARCH_nds32 |