This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 1/2] Refactor sigcontextinfo.h
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 15 Aug 2019 13:24:22 +0200
- Subject: Re: [PATCH v2 1/2] Refactor sigcontextinfo.h
- References: <20190801181534.8802-1-adhemerval.zanella@linaro.org>
* Adhemerval Zanella:
> +/* Different that other architectures, ia64 pass a sigcontext_t struct
> + in third argument for sa_sigaction handler with SA_SIGINFO. */
> +#define GET_PC(ctx) \
> + ({ uintptr_t __sc_ip = ((struct sigcontext *) (ctx))->sc_ip; \
> + uintptr_t __pc = (__sc_ip & ~0x3ULL) + (4 * (__sc_ip & 0x3ull)); \
> + __pc; \
> + })
The comment does not match the code: sigcontext_t vs struct sigcontext.
Thanks,
Florian