summaryrefslogtreecommitdiff
path: root/opcodes/i386-dis.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-05-12 15:19:22 +0000
committerH.J. Lu <hjl@lucon.org>2001-05-12 15:19:22 +0000
commitd6a55d83970907b0a5d6a76e5a1fbf373a187012 (patch)
tree059bd9ed93d5a407b125e3e2c7476587ac916ab0 /opcodes/i386-dis.c
parent5013cdda7daf87ea5a29d68e02159ecb52738235 (diff)
downloadgdb-d6a55d83970907b0a5d6a76e5a1fbf373a187012.tar.gz
2001-05-12 H.J. Lu <hjl@gnu.org>
* i386-dis.c (print_insn_i386): Always set `mod', `reg' and `rm'.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r--opcodes/i386-dis.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 4eb57da3823..4818a7bd9af 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -3146,6 +3146,12 @@ print_insn_i386 (pc, info)
reg = (*codep >> 3) & 7;
rm = *codep & 7;
}
+ else
+ {
+ mod = 0;
+ reg = 0;
+ rm = 0;
+ }
if (dp->name == NULL && dp->bytemode1 == FLOATCODE)
{