Re: [PATCHv2] hurd: libgcc unwinding over signal trampolines with SIGINFO

2021-01-13 Thread Thomas Schwinge
Hi! On 2020-12-21T15:36:30+0100, Samuel Thibault wrote: > When the application sets SA_SIGINFO, the signal trampoline parameters > are different to follow POSIX. Thanks (and sorry for the delay), pushed "hurd: libgcc unwinding over signal trampolines with SIGINFO" to master

Re: [PATCHv2] hurd: libgcc unwinding over signal trampolines with SIGINFO

2021-01-10 Thread Samuel Thibault
Ping? Samuel Thibault, le lun. 21 déc. 2020 15:36:30 +0100, a ecrit: When the application sets SA_SIGINFO, the signal trampoline parameters are different to follow POSIX. libgcc/ * config/i386/gnu-unwind.h (x86_gnu_fallback_frame_state): Add the posix siginfo case to struct handler_args. Detect

[PATCHv2] hurd: libgcc unwinding over signal trampolines with SIGINFO

2020-12-21 Thread Samuel Thibault
When the application sets SA_SIGINFO, the signal trampoline parameters are different to follow POSIX. libgcc/ * config/i386/gnu-unwind.h (x86_gnu_fallback_frame_state): Add the posix siginfo case to struct handler_args. Detect between legacy and siginfo from the second parameter, which is a small

Re: [PATCH] hurd: libgcc unwinding over signal trampolines with SIGINFO

2020-12-21 Thread Samuel Thibault
Jessica Clarke, le lun. 21 déc. 2020 14:21:39 +, a ecrit: > On 21 Dec 2020, at 14:09, Samuel Thibault wrote: > > @@ -75,29 +86,52 @@ x86_gnu_fallback_frame_state > > return _URC_END_OF_STACK; > > > > handler_args = context->cfa; > > - scp = handler_args->scp; > > - usp = scp->sc_uesp;

Re: [PATCH] hurd: libgcc unwinding over signal trampolines with SIGINFO

2020-12-21 Thread Jessica Clarke
On 21 Dec 2020, at 14:09, Samuel Thibault wrote: > @@ -75,29 +86,52 @@ x86_gnu_fallback_frame_state > return _URC_END_OF_STACK; > > handler_args = context->cfa; > - scp = handler_args->scp; > - usp = scp->sc_uesp; > + sigcode = handler_args->legacy.sigcode; > + if (sigcode < 4096) Do y

[PATCH] hurd: libgcc unwinding over signal trampolines with SIGINFO

2020-12-21 Thread Samuel Thibault
When the application sets SA_SIGINFO, the signal trampoline parameters are different to follow POSIX. libgcc/ * config/i386/gnu-unwind.h (x86_gnu_fallback_frame_state): Add the posix siginfo case to struct handler_args. Detect between legacy and siginfo from the second parameter, which is a small

Re: SIGINFO

2008-08-10 Thread Samuel Thibault
Roland McGrath, le Sun 10 Aug 2008 00:56:20 -0700, a écrit : > You seem to be talking about SA_SIGINFO. Oups right yes. Samuel

Re: SIGINFO

2008-08-10 Thread Roland McGrath
You seem to be talking about SA_SIGINFO. Please be precise. You are not talking about SIGINFO at all.

SIGINFO

2008-08-09 Thread Samuel Thibault
Hello, I was wondering about implementing SIGINFO: as I understand it, the Hurd glibc currently calls the signal handlers as void handler(int signo, long int sigcode, struct sigcontext *scp) so the basis for the support of the kind of information that SIGINFO provides is already there, it&#