From: Andrew Burgess Date: Tue, 23 Jul 2024 16:10:22 +0000 (+0100) Subject: opcodes/x86: fix minor missed styling case X-Git-Tag: gdb-16-branchpoint~1328 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28792287e8109b7b40bd28d43950439f12f251a7;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index bc141f31770..59ec771369a 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);