[comp.sys.sun] Trying to get saddr, scode, and smask from ptrace

benson@uunet.uu.net (Benson Margulies) (04/26/89)

I want to see the signal code and saved mask for a ptraced child stopped
on a signal.

So I coded up calls to ptrace to read the apparently appropriate slots
from the u area, via PTRACE_PEEKUSER. I used the offset of those slots in
the uarea as my "addr" argument to ptrace.

I got garbage.

Are these overwritten by this point? Is there something I don't know?

(All in Sunos4.0.1, on sun3's)
-- 
Benson I. Margulies