Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: odi!benson@uunet.uu.net (Benson Margulies) Newsgroups: comp.sys.sun Subject: Trying to get saddr, scode, and smask from ptrace Keywords: SunOS Message-ID: <297@odi.UUCP> Date: 25 Apr 89 23:17:41 GMT Sender: usenet@rice.edu Organization: Object Design Inc., Burlington, MA Lines: 14 Approved: Sun-Spots@rice.edu Original-Date: 11 Apr 89 13:22:33 GMT X-Sun-Spots-Digest: Volume 7, Issue 248, message 11 of 13 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