Re: [RFA] update alpha return value hooks to regcache

Richard Henderson
2003-06-02T20:46:28Z

On Mon, Jun 02, 2003 at 06:24:56PM +0200, Mark Kettenis wrote:
> Ah, this one's got a flaw. Using abort() isn't allowed in GDB.

Ok. Addressed like so.

r~

* alpha-tdep.c (alpha_extract_return_value): Use internal_error.
(alpha_store_return_value): Likewise.

Index: alpha-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
retrieving revision 1.102
diff -c -p -d -u -r1.102 alpha-tdep.c
--- alpha-tdep.c 2 Jun 2003 16:18:32 -0000 1.102
+++ alpha-tdep.c 2 Jun 2003 20:37:07 -0000
@@ -438,7 +438,7 @@ alpha_extract_return_value (struct type
break;

default:
- abort ();
+ internal_error (__FILE__, __LINE__, "unknown floating point width");
}
break;

@@ -462,7 +462,7 @@ alpha_extract_return_value (struct type
break;

default:
- abort ();
+ internal_error (__FILE__, __LINE__, "unknown floating point width");
}
break;

@@ -517,7 +517,7 @@ alpha_store_return_value (struct type *v
error ("Cannot set a 128-bit long double return value.");

default:
- abort ();
+ internal_error (__FILE__, __LINE__, "unknown floating point width");
}
break;

@@ -542,7 +542,7 @@ alpha_store_return_value (struct type *v
error ("Cannot set a 128-bit long double return value.");

default:
- abort ();
+ internal_error (__FILE__, __LINE__, "unknown floating point width");
}
break;