From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bf95961a55b17002 X-Google-Attributes: gidfee84,public From: Peter.Mayne@cao.mts.dec.com (Peter Mayne) Subject: Re: [Q] reading program counter through /proc Date: 1995/06/07 Message-ID: <3r3jl9$slk@jac.zko.dec.com>#1/1 X-Deja-AN: 103909367 distribution: world references: organization: Digital Equipment Corporation reply-to: Peter.Mayne@cao.mts.dec.com newsgroups: comp.unix.osf.osf1 In article sosic@kurango.cit.gu.edu.au (Rok Sosic) wrote: > 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. ALpha only has 32 integer registers. R31 is hardwired to 0. The PC is not directly accessible as a register. PJDM -- Peter Mayne Digital Equipment Corporation (Australia) Canberra, ACT I wrote this, not Digital. I didn't write the X Files.