Mark Kettenis <[EMAIL PROTECTED]> writes: > From: Mariusz Woloszyn <[EMAIL PROTECTED]> > How can I determine the context of cr2 special register when the proces > caught SIGSEGV? The sigcontext structure defined in hurd in > /include/bits/sigcontext.h file does not contain the cr2 register. > The Hurd uses the same signal handler conventions as BSD, which means > that you can declare you signal handler as: > void handler (int sig, int code, struct sigcontext *scp) > For SIGSEGV, `code' is the faulting address.
Also, how do you find out if it was a read or a write (or even exec) access?

