/* * Copyright 2003 PathScale, Inc. * * Licensed under the GPL */#include<errno.h>#include"ptrace_user.h"intptrace_getregs(longpid,unsignedlong*regs_out){if(ptrace(PTRACE_GETREGS,pid,0,regs_out)<0)return-errno;return(0);}intptrace_setregs(longpid,unsignedlong*regs_out){if(ptrace(PTRACE_SETREGS,pid,0,regs_out)<0)return-errno;return(0);}