1--- a/sysdeps/linux-gnu/ppc/ptrace.h 2+++ b/sysdeps/linux-gnu/ppc/ptrace.h 3@@ -18,4 +18,5 @@ 4 * 02110-1301 USA 5 */ 6 7+#include <asm/ptrace.h> 8 #include <sys/ptrace.h> 9--- a/sysdeps/linux-gnu/ppc/regs.c 10+++ b/sysdeps/linux-gnu/ppc/regs.c 11@@ -23,11 +23,14 @@ 12 13 #include "config.h" 14 15+#include <string.h> 16 #include <sys/types.h> 17 #include <sys/ptrace.h> 18 #include <asm/ptrace.h> 19 #include <errno.h> 20+#ifdef HAVE_ERROR_H 21 #include <error.h> 22+#endif 23 24 #include "proc.h" 25 #include "common.h" 26@@ -49,8 +52,11 @@ get_instruction_pointer(struct process * 27 void 28 set_instruction_pointer(struct process *proc, void *addr) 29 { 30- if (ptrace(PTRACE_POKEUSER, proc->pid, sizeof(long)*PT_NIP, addr) != 0) 31- error(0, errno, "set_instruction_pointer"); 32+ if (ptrace(PTRACE_POKEUSER, proc->pid, sizeof(long)*PT_NIP, addr) != 0){ 33+ report_global_error("%s: set_instruction_pointer", 34+ strerror(errno)); 35+ exit(1); 36+ } 37 } 38 39 void * 40