First Support on Ginger and OMAP TI
[linux-ginger.git] / arch / um / sys-i386 / ptrace_user.c
blob0b10c3e7402885ae69d471773d554c49b09dc51d
1 /*
2 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
4 */
6 #include <errno.h>
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)
12 return -errno;
13 return 0;
16 int ptrace_setregs(long pid, unsigned long *regs)
18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
19 return -errno;
20 return 0;