2 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
7 #include <sys/ptrace.h>
9 int ptrace_getregs(long pid
, unsigned long *regs_out
)
11 if (ptrace(PTRACE_GETREGS
, pid
, 0, regs_out
) < 0)
16 int ptrace_setregs(long pid
, unsigned long *regs
)
18 if (ptrace(PTRACE_SETREGS
, pid
, 0, regs
) < 0)
23 int ptrace_getfpregs(long pid
, unsigned long *regs
)
25 if (ptrace(PTRACE_GETFPREGS
, pid
, 0, regs
) < 0)
30 int ptrace_setfpregs(long pid
, unsigned long *regs
)
32 if (ptrace(PTRACE_SETFPREGS
, pid
, 0, regs
) < 0)