aboutsummaryrefslogtreecommitdiff
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
commit4e4d83747cd746b9b8569938f0fb83625c74b8ff (patch)
treed811be0dd57efdcf9b72bb5435c39970091c10bb /gdb/i387-tdep.c
parent6bf924b0ab37b8fd62d11262e93f34902ed5e457 (diff)
downloadgdb-4e4d83747cd746b9b8569938f0fb83625c74b8ff.zip
gdb-4e4d83747cd746b9b8569938f0fb83625c74b8ff.tar.gz
gdb-4e4d83747cd746b9b8569938f0fb83625c74b8ff.tar.bz2
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 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;