* [Q] reading program counter through /proc
@ 1995-06-06 4:00 Rok Sosic
1995-06-07 4:00 ` Peter Mayne
0 siblings, 1 reply; 2+ messages in thread
From: Rok Sosic @ 1995-06-06 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Q] reading program counter through /proc
1995-06-06 4:00 [Q] reading program counter through /proc Rok Sosic
@ 1995-06-07 4:00 ` Peter Mayne
0 siblings, 0 replies; 2+ messages in thread
From: Peter Mayne @ 1995-06-07 4:00 UTC (permalink / raw)
In article <sosic.802427215@kurango>
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-06-07 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-06 4:00 [Q] reading program counter through /proc Rok Sosic
1995-06-07 4:00 ` Peter Mayne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox