This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PATCH: Replace abort with internal_error in i387-tdep.c
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GDB <gdb-patches at sourceware dot org>
- Date: Thu, 8 Apr 2010 15:57:20 -0700
- Subject: PATCH: Replace abort with internal_error in i387-tdep.c
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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;