1 /* Return -1 on error or 1 on success (never 0!). */ 2 static int get_syscall_args(struct tcb * tcp)3 get_syscall_args(struct tcb *tcp) 4 { 5 unsigned int i; 6 7 for (i = 0; i < tcp->s_ent->nargs; ++i) 8 if (upeek(tcp->pid, PT_GR26-4*i, &tcp->u_arg[i]) < 0) 9 return -1; 10 return 1; 11 } 12