Trying to get saddr, scode, and smask from ptrace
Benson Margulies
odi!benson at uunet.uu.net
Wed Apr 26 09:17:41 AEST 1989
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
More information about the Comp.sys.sun
mailing list