2 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
7 #include <ptrace_user.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)