2 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
8 #include "ptrace_user.h"
10 int ptrace_getregs(long pid
, unsigned long *regs_out
)
12 if (ptrace(PTRACE_GETREGS
, pid
, 0, regs_out
) < 0)
17 int ptrace_setregs(long pid
, unsigned long *regs_out
)
19 if (ptrace(PTRACE_SETREGS
, pid
, 0, regs_out
) < 0)