This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Abort on unhandled table
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 26 Mar 2009 17:27:50 -0700
- Subject: PATCH: Abort on unhandled table
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
I am checking in this patch to abort on unhandled table since
get_valid_dis386 should never return NULL.
H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 5555)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2009-03-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-dis.c (get_valid_dis386): Abort on unhandled table.
+
2009-03-18 Alan Modra <amodra@bigpond.net.au>
* cgen-opc.c: Include alloca-conf.h rather than alloca.h.
Index: i386-dis.c
===================================================================
--- i386-dis.c (revision 5555)
+++ i386-dis.c (working copy)
@@ -10044,8 +10044,7 @@ get_valid_dis386 (const struct dis386 *d
break;
default:
- oappend (INTERNAL_DISASSEMBLER_ERROR);
- return NULL;
+ abort ();
}
if (dp->name != NULL)