aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-12-01 10:26:32 +0000
committerNick Clifton <nickc@redhat.com>2016-12-01 10:26:32 +0000
commita37a2806e3289294ed214aed3c8a45db46026b39 (patch)
treee70ff3bcf372f9f6aac0407d4bcb56ee2cbedc22 /opcodes
parent50455f1ab2935f7321215dfa681745c9b1cb5b19 (diff)
downloadgdb-a37a2806e3289294ed214aed3c8a45db46026b39.zip
gdb-a37a2806e3289294ed214aed3c8a45db46026b39.tar.gz
gdb-a37a2806e3289294ed214aed3c8a45db46026b39.tar.bz2
Fix abort in x86 disassembler.
PR binutils/20893 * i386-dis.c (OP_VEX): Replace call to abort with a append of bad opcode designator.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/i386-dis.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 299b750..783ffa2 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2016-12-01 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/20893
+ * i386-dis.c (OP_VEX): Replace call to abort with a append of bad
+ opcode designator.
+
2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
* arc-opc.c (insert_ra_chk): New function.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index ada4401..ad0baf1 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -16975,7 +16975,8 @@ OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
names = names_mask;
break;
default:
- abort ();
+ /* See PR binutils/20893 for a reproducer. */
+ oappend ("(bad)");
return;
}
break;