aboutsummaryrefslogtreecommitdiff
path: root/arch/um/sys-x86_64/ptrace_user.c
blob: c57a496d3f5b13d668946067e62b7f0ae0a7663a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * 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);
}