summaryrefslogtreecommitdiff
path: root/gdb/i387-tdep.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-09 00:18:52 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-09 00:18:52 +0000
commit18e127d2a47b63d3cd583c2b9d0760243ab8d3b0 (patch)
treeca4b39482a71352bfbba37e18b6e7ff89b5c0678 /gdb/i387-tdep.c
parent980d51455ce50ddb70f2d041d34983a04cd789af (diff)
downloadgdb-18e127d2a47b63d3cd583c2b9d0760243ab8d3b0.tar.gz
Replace abort with internal_error.
2010-04-08 H.J. Lu <hongjiu.lu@intel.com> * i387-tdep.c (i387_collect_xsave): Replace abort with internal_error.
Diffstat (limited to 'gdb/i387-tdep.c')
-rw-r--r--gdb/i387-tdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index eac32161181..6dc9c2c5f60 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;