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
On 15/08/2019 08:24, Florian Weimer wrote:
> * 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.
Indeed, I will correct the comment to reference 'struct sigcontext'.