[BACK]Return to ptrace_user.c CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / arch / um / sys-x86_64

File: [Development] / linux-2.6-xfs / arch / um / sys-x86_64 / ptrace_user.c (download)

Revision 1.4, Tue Feb 26 16:44:40 2008 UTC (9 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +5 -41 lines

Merge up to 2.6.25-rc3
Merge of 2.6.x-xfs-melb:linux:30555a by kenmcd.

/*
 * 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);
}