This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Replace abort with internal_error in i387-tdep.c


Hi,

This patch replaces abort with internal_error.  OK to install?

Thanks.


H.J.
---
2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>

	* i387-tdep.c (i387_collect_xsave): Replace abort with
	internal_error.

diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index eac3216..6dc9c2c 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -1033,7 +1033,8 @@ i387_collect_xsave (const struct regcache *regcache, int regnum,
 	  switch (regclass)
 	    {
 	    default:
-	      abort ();
+	      internal_error (__FILE__, __LINE__,
+			      _("invalid i387 regclass"));
 
 	    case avxh:
 	      /* This is an upper YMM register.  */
@@ -1077,7 +1078,8 @@ i387_collect_xsave (const struct regcache *regcache, int regnum,
 	  switch (regclass)
 	    {
 	    default:
-	      abort ();
+	      internal_error (__FILE__, __LINE__,
+			      _("invalid i387 regclass"));
 
 	    case all:
 	      break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]