aboutsummaryrefslogtreecommitdiff
path: root/opcodes
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
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')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/i386-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 98b1d60..564c6a6 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2009-09-14 Nick Clifton <nickc@redhat.com>
* po/nl.po: Updated Dutch translation.
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';