Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!rutgers!netnews.upenn.edu!grad1.cis.upenn.edu!shaffer From: shaffer@grad1.cis.upenn.edu (John Shaffer) Newsgroups: comp.unix.aix Subject: PT_STEP parameter to ptrace() on RS/6000 Message-ID: <40922@netnews.upenn.edu> Date: 11 Apr 91 14:35:13 GMT Sender: news@netnews.upenn.edu Reply-To: shaffer@grad1.cis.upenn.edu (John Shaffer) Organization: University of Pennsylvania Lines: 26 Nntp-Posting-Host: grad1.cis.upenn.edu I am working on an RS/6000 running AIX and am trying to use ptrace() to single step instructions, but have run into a problem. The "request" argument to ptrace() specifies the action for the ptrace() call to perform. In order to execute one instruction and return control to the parent process, the PT_STEP paremeter is used (PT_SINGLE on some machiness. The problem is this: The documentation does not specify a PT_STEP parameter but it is included in the file /usr/include/sys/ptrace.h. It is defined to have a value of 9 (i think, nevertheless it IS defined). When trying to call ptrace() with this "request", I get an errno that says that the request parameter is invalid. Has anyone run into this? or know of a way around it so that one can single step instructions?? I figure it must be able to be done since dbx can do it. The program compiles and runs fine on an RT running BSD. Any insight into this would be most appreciated. Thanx. john shaffer shaffer@dsl.cis.upenn.edu