Subject: Re: faulting address in SIGSEGV handler (i386)
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 08/30/2001 23:20:03
In article <20010829202835.A15559@danbala.tuwien.ac.at>,
Dieter Baron <dillo@danbala.ifoer.tuwien.ac.at> wrote:
>hi,
>
>while trying to port sbcl (Steel Bank Common Lisp,
>http://sbcl.sourceforge.net/) to NetBSD, I discovered, that NetBSD
>doesn't support the SA_SIGINFO flag to sigaction(2). sbcl uses it to
>get at the faulting address in its SIGSEGV handler. Any idea how I
>can get at that address on i386? (sparc seems to pass the address
>in the code parameter to the signal handler.)
>
Hmm, we still have the old crappy sigcontext code. the second argument
of the signal is going to be struct sigcontext * still. sc_eip should
give you what you want.
christos