patches/strace/4.5.15/strace-fix-arm-bad-syscall.patch
changeset 257 7613a256b9a6
parent 256 97c14281a40c
child 258 316debfc1795
     1.1 --- a/patches/strace/4.5.15/strace-fix-arm-bad-syscall.patch	Sat Jul 14 17:02:05 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,18 +0,0 @@
     1.4 ---- strace-4.5.12-orig/syscall.c	2005-06-08 21:45:28.000000000 +0100
     1.5 -+++ strace-4.5.12/syscall.c	2005-10-25 19:26:39.000000000 +0100
     1.6 -@@ -1013,6 +1013,15 @@ struct tcb *tcp;
     1.7 - 		/*
     1.8 - 		 * Note: we only deal with only 32-bit CPUs here.
     1.9 - 		 */
    1.10 -+
    1.11 -+		if (!(tcp->flags & TCB_INSYSCALL) &&
    1.12 -+		    (tcp->flags & TCB_WAITEXECVE)) {
    1.13 -+			/* caught a fake syscall from the execve's exit */
    1.14 -+			tcp->flags &= ~TCB_WAITEXECVE;
    1.15 -+			return 0;
    1.16 -+		}
    1.17 -+ 
    1.18 -+
    1.19 - 		if (regs.ARM_cpsr & 0x20) {
    1.20 - 			/*
    1.21 - 			 * Get the Thumb-mode system call number