[email protected] wrote:
hi,'m using the 5.11 kernel version on amd64 architecture, 32-bit. i need help
on the following issues

Forget about ptrace; use /proc.

As a Solaris process has multiple threads of control, you can't change the
registers using ptrace.

You get the registers through getting the lwpstatus file:


        /proc/<pid>/lwp/<lwp>/lwpstatus.

You can use the PCSREG command to change the registers; a command is written with the argument to /proc/<pid>/lwp/<lwp>/lwpctl or
to /proc/<pid>/ctl.
You might also take a look at man -s 4 proc.
max


_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to