From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bf95961a55b17002,start X-Google-Attributes: gidfee84,public From: sosic@kurango.cit.gu.edu.au (Rok Sosic) Subject: [Q] reading program counter through /proc Date: 1995/06/06 Message-ID: #1/1 X-Deja-AN: 103909329 organization: Griffith University, CIT newsgroups: comp.unix.osf.osf1 Hi, I am trying to manipulate a process through the /proc interface. Does someone know how to obtain the current value of the program counter of the manipulated process? I tried ioctl with PIOCSTATUS, which returns registers in pr_reg, but all the registers above 33 are set to 0, so it seems that they do not contain the PC. Any help will be greatly appreciated. Cheers, Rok -- Rok Sosic (sosic@cit.gu.edu.au) _--_|\ School of Computing & Information Technology / GU (Brisbane) Griffith University, Nathan, QLD 4111, AUSTRALIA \_.--._/ phone: +61 7 875 5026; fax: + 61 7 875 5051 v WWW: http://www.cit.gu.edu.au/~sosic