* i386-tdep.c (i386_match_insn): Match complete instruction
pattern.
+2005-07-18 Mark Kettenis <kettenis@gnu.org>
+ Jason Molenda <jmolenda@apple.com>
+
+ * i386-tdep.c (i386_match_insn): Match complete instruction
+ pattern.
+
2005-07-18 Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_reg_struct_return_p): Handle structures with a
{
if ((op & insn->mask[0]) == insn->insn[0])
{
- unsigned char buf[I386_MAX_INSN_LEN - 1];
+ gdb_byte buf[I386_MAX_INSN_LEN - 1];
+ int insn_matched = 1;
size_t i;
gdb_assert (insn->len > 1);
for (i = 1; i < insn->len; i++)
{
if ((buf[i - 1] & insn->mask[i]) != insn->insn[i])
- break;
-
- return insn;
+ insn_matched = 0;
}
+
+ if (insn_matched)
+ return insn;
}
}