From: Roland McGrath Date: Tue, 18 Mar 2003 07:43:42 +0000 (+0000) Subject: 2003-03-17 Roland McGrath X-Git-Tag: v4.5.18~787 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=361aac5193045db0ff0d2d0a7a19964793ab1ab7;p=strace 2003-03-17 Roland McGrath * linux/x86_64/syscallent.h: clone takes 5 args. * process.c [LINUX] (sys_clone) [X86_64]: Fix argument order. --- diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h index 7e30d30f..0b050c01 100644 --- a/linux/x86_64/syscallent.h +++ b/linux/x86_64/syscallent.h @@ -54,7 +54,7 @@ { 4, TN, sys_socketpair, "socketpair" }, /* 53 */ { 5, TN, sys_setsockopt, "setsockopt" }, /* 54 */ { 5, TN, sys_getsockopt, "getsockopt" }, /* 55 */ - { 2, TP, sys_clone, "clone" }, /* 56 */ + { 5, TP, sys_clone, "clone" }, /* 56 */ { 0, TP, sys_fork, "fork" }, /* 57 */ { 0, TP, sys_vfork, "vfork" }, /* 58 */ { 3, TF|TP, sys_execve, "execve" }, /* 59 */ diff --git a/process.c b/process.c index 6a2fad39..8c7ca128 100644 --- a/process.c +++ b/process.c @@ -538,6 +538,12 @@ extern void print_ldt_entry(); # define ARG_PTID 2 # define ARG_TLS 3 # define ARG_CTID 4 +# elif defined X86_64 +# define ARG_FLAGS 0 +# define ARG_STACK 1 +# define ARG_PTID 2 +# define ARG_CTID 3 +# define ARG_TLS 4 # else # define ARG_FLAGS 0 # define ARG_STACK 1