2004-03-02 Roland McGrath <roland@redhat.com>

* util.c (setbpt): Fix one missed spot to use new arg0_index macro.
	From Michael Holzheu <HOLZHEU@de.ibm.com>.
This commit is contained in:
Roland McGrath 2004-03-02 08:50:42 +00:00
parent 2d1ecca2aa
commit 02cee8d5cb

2
util.c
View File

@ -1384,7 +1384,7 @@ struct tcb *tcp;
#ifdef SYS_clone2 #ifdef SYS_clone2
case SYS_clone2: case SYS_clone2:
#endif #endif
if ((tcp->u_arg[0] & CLONE_PTRACE) == 0 if ((tcp->u_arg[arg0_index] & CLONE_PTRACE) == 0
&& (arg_setup (tcp, &state) < 0 && (arg_setup (tcp, &state) < 0
|| set_arg0 (tcp, &state, || set_arg0 (tcp, &state,
tcp->u_arg[arg0_index] | CLONE_PTRACE) < 0 tcp->u_arg[arg0_index] | CLONE_PTRACE) < 0