aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-dis.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-09-15 17:53:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-09-15 17:53:40 +0000
commit05203043766029ac32e5faded4ea116b94e9e0ac (patch)
tree84e7f348cf24de411eb0cb98f4d67118f9234b9c /opcodes/i386-dis.c
parent9de868bf63da6e25619af0a1876200ca4cbd6375 (diff)
downloadgdb-05203043766029ac32e5faded4ea116b94e9e0ac.zip
gdb-05203043766029ac32e5faded4ea116b94e9e0ac.tar.gz
gdb-05203043766029ac32e5faded4ea116b94e9e0ac.tar.bz2
2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if disp == -disp.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r--opcodes/i386-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 30fdf9f..e6b8049 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -11107,7 +11107,7 @@ OP_E_memory (int bytemode, int sizeflag)
*obufp++ = '+';
*obufp = '\0';
}
- else if (modrm.mod != 1)
+ else if (modrm.mod != 1 && disp != -disp)
{
*obufp++ = '-';
*obufp = '\0';