From: H.J. Lu Date: Thu, 19 Dec 2013 22:28:18 +0000 (-0800) Subject: Mask out PREFIX_ADDR when adding prefix to opcode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9fda3f571bef013565e8a6632e9cf303f6c5eae;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 76cedd74594..d885207b67d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-12-19 H.J. Lu + + PR gdb/16305 + * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when + adding prefix to opcode. + 2013-12-19 H.J. Lu PR gdb/16304 diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 8992088ea0f..4f86f0cb1a8 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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;