On Sun, Mar 6, 2022 at 11:11 PM <soe...@soeren-tempel.net> wrote:
>
> +#ifdef __PPC64__
> +       ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gp_regs[32];
> +#else
> +       ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[32];
> +#endif

Have you tested this in 32-bit mode?  It does not look correct based
on the glibc definitions.  Looking at glibc it seems that it ought to
be

reg.sigpc = ((ucontext_t*)(context))->uc_mcontext.uc_regs->gregs[32];

Ian

Reply via email to