hurd: Make trampoline fill siginfo ss_sp from sc_uesp
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 21 Dec 2020 02:15:38 +0000 (03:15 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 21 Dec 2020 02:17:00 +0000 (03:17 +0100)
Mach actually rather fills the uesp field, not esp.

sysdeps/mach/hurd/i386/trampoline.c

index 4a9cab1332ed3b6fab5498b30147faa1c7a9709d..1777d0769dbb18a86c1967542faac0b0bbbd0b4f 100644 (file)
@@ -63,7 +63,7 @@ static void fill_ucontext (ucontext_t *uc, const struct sigcontext *sc)
   uc->uc_flags = 0;
   uc->uc_link = NULL;
   uc->uc_sigmask = sc->sc_mask;
-  uc->uc_stack.ss_sp = (__ptr_t) sc->sc_esp;
+  uc->uc_stack.ss_sp = (__ptr_t) sc->sc_uesp;
   uc->uc_stack.ss_size = 0;
   uc->uc_stack.ss_flags = 0;