android_kernel_cmhtcleo/arch/um/sys-x86_64/ptrace_user.c
2010-08-27 11:19:57 +02:00

23 lines
393 B
C

/*
* Copyright 2003 PathScale, Inc.
*
* Licensed under the GPL
*/
#include <errno.h>
#include "ptrace_user.h"
int ptrace_getregs(long pid, unsigned long *regs_out)
{
if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
return -errno;
return(0);
}
int ptrace_setregs(long pid, unsigned long *regs_out)
{
if (ptrace(PTRACE_SETREGS, pid, 0, regs_out) < 0)
return -errno;
return(0);
}