diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2020-12-21 01:41:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-12-21 01:44:20 +0100 |
commit | d865ff74ba096d016c9b1542a4e3d305169c9e55 (patch) | |
tree | a1ad2cf50e23fcf87a08b3955fffd7d7f80b404d /sysdeps/mach/hurd/i386/sigcontextinfo.h | |
parent | 407765e9f24f5a82f318a9e069a977710ac99ee0 (diff) | |
download | glibc-d865ff74ba096d016c9b1542a4e3d305169c9e55.tar.gz glibc-d865ff74ba096d016c9b1542a4e3d305169c9e55.tar.xz glibc-d865ff74ba096d016c9b1542a4e3d305169c9e55.zip |
hurd: implement SA_SIGINFO signal handlers.
SA_SIGINFO is actually just another way of expressing what we were already passing over with struct sigcontext. This just introduces the SIGINFO interface and fixes the posix values when that interface is requested by the application.
Diffstat (limited to 'sysdeps/mach/hurd/i386/sigcontextinfo.h')
-rw-r--r-- | sysdeps/mach/hurd/i386/sigcontextinfo.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/i386/sigcontextinfo.h b/sysdeps/mach/hurd/i386/sigcontextinfo.h index 218a436af7..59989e9522 100644 --- a/sysdeps/mach/hurd/i386/sigcontextinfo.h +++ b/sysdeps/mach/hurd/i386/sigcontextinfo.h @@ -18,11 +18,10 @@ #ifndef _SIGCONTEXTINFO_H #define _SIGCONTEXTINFO_H -#define SIGCONTEXT struct sigcontext static inline uintptr_t -sigcontext_get_pc (struct sigcontext ctx) +sigcontext_get_pc (struct ucontext_t *ctx) { - return ctx.sc_eip; + return ctx->uc_mcontext.gregs[REG_EIP]; } #endif |