[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Process traceing

Mark Kettenis <kettenis@wins.uva.nl> writes:
>    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.

Also, how do you find out if it was a read or a write (or even exec)

Reply to: