aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-07-23 17:10:22 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-07-24 14:32:35 +0100
commit28792287e8109b7b40bd28d43950439f12f251a7 (patch)
tree721bc796c90256a8290bddd9bb003dd4534d7be1
parent2a215bbf7c0b02cf281aecbc9cb1b56d52ff7fc0 (diff)
downloadgdb-28792287e8109b7b40bd28d43950439f12f251a7.zip
gdb-28792287e8109b7b40bd28d43950439f12f251a7.tar.gz
gdb-28792287e8109b7b40bd28d43950439f12f251a7.tar.bz2
opcodes/x86: fix minor missed styling case
I noticed that the x86 instruction: sar $1,%rsi would fail to style the '$0x1' as an immediate. This commit fixes that case.
-rw-r--r--opcodes/i386-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index bc141f3..59ec771 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -12415,9 +12415,9 @@ OP_I (instr_info *ins, int bytemode, int sizeflag)
break;
case const_1_mode:
if (ins->intel_syntax)
- oappend (ins, "1");
+ oappend_with_style (ins, "1", dis_style_immediate);
else
- oappend (ins, "$1");
+ oappend_with_style (ins, "$1", dis_style_immediate);
return true;
default:
oappend (ins, INTERNAL_DISASSEMBLER_ERROR);