PATCH: Abort on unhandled table

H.J. Lu hongjiu.lu@intel.com
Fri Mar 27 00:28:00 GMT 2009


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)



More information about the Binutils mailing list