]> granicus.if.org Git - strace/commitdiff
2005-02-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2005 03:06:52 +0000 (03:06 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2005 03:06:52 +0000 (03:06 +0000)
* syscall.c (syscall_enter) [X86_64]: Fix 32-bit argument register map
not to double the middle entry!

syscall.c

index f6332c65e025932778a308dde74b36e474dba558..c5063340d4ede344dd3119fda2033e9d7ef18a82 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -2038,7 +2038,7 @@ struct tcb *tcp;
                int i;
                static int argreg[SUPPORTED_PERSONALITIES][MAX_ARGS] = {
                        {RDI,RSI,RDX,R10,R8,R9},        /* x86-64 ABI */
-                       {RBX,RCX,RDX,RDX,RSI,RDI,RBP}   /* i386 ABI */
+                       {RBX,RCX,RDX,RSI,RDI,RBP}       /* i386 ABI */
                };
 
                if (tcp->scno >= 0 && tcp->scno < nsyscalls && sysent[tcp->scno].nargs != -1)