Re: Process traceing
Date: Thu, 17 Feb 2000 20:43:31 +0100 (EET)
From: Mariusz Woloszyn <emsi@it.pl>
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.
Mark
Reply to: