2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
10 #include "ptrace_user.h"
11 /* Grr, asm/user.h includes asm/ptrace.h, so has to follow ptrace_user.h */
13 #include "kern_util.h"
14 #include "sysdep/thread.h"
17 #include "uml-config.h"
19 int ptrace_getregs(long pid, unsigned long *regs_out)
21 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
26 int ptrace_setregs(long pid, unsigned long *regs)
28 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
33 int ptrace_getfpregs(long pid, unsigned long *regs)
35 if (ptrace(PTRACE_GETFPREGS, pid, 0, regs) < 0)
40 int ptrace_setfpregs(long pid, unsigned long *regs)
42 if (ptrace(PTRACE_SETFPREGS, pid, 0, regs) < 0)