Re: hppa and sigaction
On Sat, May 14, 2005 at 01:00:09PM +0200, Wesley W. Terpstra wrote:
> When one sets an sa_sigaction with sigaction on parisc/hppa what is void*?
>
> I know it is sometimes ucontext_t or struct sigcontext depending on the
> arch. However, I am trying to find the program counter prior to the signal
> (for profiling) and with both structs, sc_ioaq is a constant.
>
> Am I going about reading the instruction pointer the wrong way?
The void* is ucontext_t.
To get at sc_ioaq you must look in ucontext_t->uc_mcontext->sc_iaoq.
If you are using an older 64-bit kernel all this information may be
wrong, and require a kernel update.
c.
Reply to: