diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-07-04 17:45:25 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-07-25 14:02:30 +0100 |
commit | 4f46c0bc36471b725de0253bfec1a42a36e2c5c5 (patch) | |
tree | 9a11bc8262ef1113f92202a430045ec3ac0577d2 /binutils | |
parent | 2cb10f02b0e0d0d062c97c19defef1e5e334b13b (diff) | |
download | binutils-4f46c0bc36471b725de0253bfec1a42a36e2c5c5.zip binutils-4f46c0bc36471b725de0253bfec1a42a36e2c5c5.tar.gz binutils-4f46c0bc36471b725de0253bfec1a42a36e2c5c5.tar.bz2 |
opcodes: add new sub-mnemonic disassembler style
When adding libopcodes disassembler styling support for AArch64, it
feels like the results would be improved by having a new sub-mnemonic
style. This will be used in cases like:
add w16, w7, w1, uxtb #2
^^^^----- Here
And:
cinc w0, w1, ne
^^----- Here
This commit just adds the new style, and prepares objdump to handle
the style. A later commit will add AArch64 styling, and will actually
make use of the style.
As this style is currently unused, there should be no user visible
changes after this commit.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/objdump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 6782405..4076587 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2167,6 +2167,7 @@ objdump_color_for_disassembler_style (enum disassembler_style style) { case dis_style_symbol: color = 32; break; case dis_style_assembler_directive: + case dis_style_sub_mnemonic: case dis_style_mnemonic: color = 33; break; case dis_style_register: color = 34; break; case dis_style_address: @@ -2185,6 +2186,7 @@ objdump_color_for_disassembler_style (enum disassembler_style style) { case dis_style_symbol: color = 40; break; case dis_style_assembler_directive: + case dis_style_sub_mnemonic: case dis_style_mnemonic: color = 142; break; case dis_style_register: color = 27; break; case dis_style_address: |