(_hurd_exception2signal): Take new arg `int *error'; set it.
authorRoland McGrath <roland@gnu.org>
Mon, 8 Aug 1994 22:54:44 +0000 (22:54 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 8 Aug 1994 22:54:44 +0000 (22:54 +0000)
sysdeps/mach/hurd/mips/exc2signal.c

index b894dfb..7a9ab31 100644 (file)
@@ -26,8 +26,10 @@ Cambridge, MA 02139, USA.  */
 
 void
 _hurd_exception2signal (int exception, int code, int subcode,
-                       int *signo, int *sigcode)
+                       int *signo, int *sigcode, int *error)
 {
+  *error = 0;
+
   switch (exception)
     {
     default:
@@ -41,6 +43,7 @@ _hurd_exception2signal (int exception, int code, int subcode,
       else
        *signo = SIGBUS;
       *sigcode = subcode;
+      *error = code;
       break;
 
     case EXC_BAD_INSTRUCTION: