]> granicus.if.org Git - strace/commitdiff
2004-03-02 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 2 Mar 2004 08:50:42 +0000 (08:50 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 2 Mar 2004 08:50:42 +0000 (08:50 +0000)
* util.c (setbpt): Fix one missed spot to use new arg0_index macro.
From Michael Holzheu <HOLZHEU@de.ibm.com>.

util.c

diff --git a/util.c b/util.c
index 2770ac455dfdfdb002263fda3ad718a56cc3fbce..d4cc290cdf511a7ba496bdcf481cbd33e7bcbda1 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1384,7 +1384,7 @@ struct tcb *tcp;
 #ifdef SYS_clone2
        case SYS_clone2:
 #endif
-               if ((tcp->u_arg[0] & CLONE_PTRACE) == 0
+               if ((tcp->u_arg[arg0_index] & CLONE_PTRACE) == 0
                    && (arg_setup (tcp, &state) < 0
                        || set_arg0 (tcp, &state,
                                     tcp->u_arg[arg0_index] | CLONE_PTRACE) < 0