Subject: finding faulted address
To: None <current-users@NetBSD.ORG>
From: VaX#n8 <vax@ccwf.cc.utexas.edu>
List: current-users
Date: 08/21/1995 23:06:27
I'm trying to find the faulted-on address in a SIGBUS handler.
StunOS passes the address as another parameter to the signal handler,
but I'm afraid I'm a bit confused as to how to get this from NetBSD.

I'm looking over the machine/signal.h, but it appears to my untrained eye
that I'd have to do some decoding of machine instructions (blech) and
stuff.

Mainly I'm mprotecting some heap pages and I want to find out which ones
are being accessed, munprotect them, allow the access, and then later
mprotect them.

(Please help!)
-- 
VaX#n8 (vak-sa-nate) - n, CS senior++ and ueber-rrific - vax@ccwf.cc.utexas.edu
There are two kinds of people, those that finish their thoughts, and so on....