get and set registers using ptrace

Jun Shih (jshih@plg.uwaterloo.ca)
Sun, 28 Jul 1996 16:11:35 -0400 (EDT)


Hi,

I am porting a SunOS program to linux that uses PTRACE_GETREGS and
PTRACE_SETREGS to get and set process's registers. It seems that
PTRACE_GETREGS and PTRACE_SETREGS are not supported in linux. Would
someone tell me how to get and set process's registers in linux?

Thanks,
Jun