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"
16 #include "uml-config.h"
18 int ptrace_getregs(long pid, unsigned long *regs_out)
20 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
25 int ptrace_setregs(long pid, unsigned long *regs)
27 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
32 int ptrace_getfpregs(long pid, unsigned long *regs)
34 if (ptrace(PTRACE_GETFPREGS, pid, 0, regs) < 0)
39 int ptrace_setfpregs(long pid, unsigned long *regs)
41 if (ptrace(PTRACE_SETFPREGS, pid, 0, regs) < 0)