swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: abe94c756c08d50566c09a65b9c7fe72f83071c5 authored by Linus Torvalds on 29 January 2010, 21:57:50 UTC
Linux 2.6.33-rc6
Tip revision: abe94c7
ptrace_user.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);
}
back to top