This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/2] Refactor sigcontextinfo.h


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]