]> granicus.if.org Git - strace/commitdiff
2003-03-17 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 18 Mar 2003 07:43:42 +0000 (07:43 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 18 Mar 2003 07:43:42 +0000 (07:43 +0000)
* linux/x86_64/syscallent.h: clone takes 5 args.
* process.c [LINUX] (sys_clone) [X86_64]: Fix argument order.

linux/x86_64/syscallent.h
process.c

index 7e30d30fb53d0befa342f0b4601a567986358de4..0b050c01339a294f57de887172527ac3221bcb57 100644 (file)
@@ -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 */
index 6a2fad397a3d4a60fc8f8b8e4d0ba77ac000f9f8..8c7ca1280a13aca9bd059f2b374fa95687b25fc2 100644 (file)
--- 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