commit | 3bb9c3d3585bb08f0afb061839e0ea3792bfb41a | [log] [tgz] |
---|---|---|
author | Roland McGrath <roland@redhat.com> | Mon Dec 16 20:40:48 2002 +0000 |
committer | Roland McGrath <roland@redhat.com> | Mon Dec 16 20:40:48 2002 +0000 |
tree | f0ef7ab2bd6f0429d15de0be35b8f3c594b5f5c0 | |
parent | 553a609807074e95eed5a0bffba334b7fb3d3751 [diff] [blame] |
2002-12-15 Roland McGrath <roland@redhat.com> * process.c (setarg) [POWERPC]: Support it.
diff --git a/process.c b/process.c index c6d5ee2..6a68316 100644 --- a/process.c +++ b/process.c
@@ -592,6 +592,17 @@ if (errno) return -1; } +#elif defined(POWERPC) +#ifndef PT_ORIG_R3 +#define PT_ORIG_R3 34 +#endif + { + ptrace(PTRACE_POKEUSER, tcp->pid, + (char*)((argnum==0 ? PT_ORIG_R3 : argnum+PT_R3)*4), + tcp->u_arg[argnum]); + if (errno) + return -1; + } #elif defined(MIPS) { errno = 0;