Subject: Re: faulting address in SIGSEGV handler (i386)
To: None <tech-kern@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 08/31/2001 10:23:44
"Valeriy E. Ushakov" wrote:
> On Thu, Aug 30, 2001 at 23:20:03 +0000, Christos Zoulas wrote:
>
> > > get at the faulting address in its SIGSEGV handler.
> >
> > sc_eip should give you what you want.
>
> My understanding is that it needs the address of the access that
> caused the fault (e.g SFVA on sun4m), not the address of the
> instruction that tried to perform the access.
A quick glance at a few <machine/signal.h>'s show that sc_pc *seems*
to be present on all architectures.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD CDs, Support and Service: http://www.wasabisystems.com/