about summary refs log tree commit diff
path: root/hurd/hurd
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-03-19 18:09:47 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:51:42 +0200
commitd8ee5d614bc485f6d1752dfa0d60524b20945a56 (patch)
tree4588965f4cbb0eaa66a265a8ad141137966d5464 /hurd/hurd
parent09b382122288e706c5fa2c0412910f71c78b7d63 (diff)
downloadglibc-d8ee5d614bc485f6d1752dfa0d60524b20945a56.tar.gz
glibc-d8ee5d614bc485f6d1752dfa0d60524b20945a56.tar.xz
glibc-d8ee5d614bc485f6d1752dfa0d60524b20945a56.zip
hurd: Make exception subcode a long
On EXC_BAD_ACCESS, exception subcode is used to pass the faulting memory
address, so it needs to be (at least) pointer-sized. Thus, make it into
a long. This matches the corresponding change in GNU Mach.
Message-Id: <20230319151017.531737-5-bugaevc@gmail.com>
Diffstat (limited to 'hurd/hurd')
-rw-r--r--hurd/hurd/signal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index 4e9f79b19d..c33f974b1b 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -51,9 +51,10 @@ struct hurd_signal_preemptor;	/* <hurd/sigpreempt.h> */
 struct hurd_signal_detail
   {
     /* Codes from origination Mach exception_raise message.  */
-    integer_t exc, exc_code, exc_subcode;
+    integer_t exc, exc_code;
+    long_integer_t exc_subcode;
     /* Sigcode as passed or computed from exception codes.  */
-    integer_t code;
+    long_integer_t code;
     /* Error code as passed or extracted from exception codes.  */
     error_t error;
   };