Mask out PREFIX_ADDR when adding prefix to opcode

PREFIX_ADDR isn't a prefix to opcode.  This patch masks out PREFIX_ADDR
when adding prefix to opcode.

	PR gdb/16305
	* i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
	adding prefix to opcode.
This commit is contained in:
H.J. Lu 2013-12-19 14:28:18 -08:00
parent 1e87984a63
commit f9fda3f571
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
PR gdb/16305
* i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
adding prefix to opcode.
2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
PR gdb/16304

View File

@ -7048,7 +7048,8 @@ no_support_3dnow_data:
case 0x0ffc:
case 0x0ffd:
case 0x0ffe:
switch (prefixes)
/* Mask out PREFIX_ADDR. */
switch ((prefixes & ~PREFIX_ADDR))
{
case PREFIX_REPNZ:
opcode |= 0xf20000;