patches/strace/4.5.15/strace-fix-arm-bad-syscall.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 14 17:02:05 2007 +0000 (2007-07-14)
changeset 256 97c14281a40c
permissions -rw-r--r--
Add patches for strace 4.5.15.
     1 --- strace-4.5.12-orig/syscall.c	2005-06-08 21:45:28.000000000 +0100
     2 +++ strace-4.5.12/syscall.c	2005-10-25 19:26:39.000000000 +0100
     3 @@ -1013,6 +1013,15 @@ struct tcb *tcp;
     4  		/*
     5  		 * Note: we only deal with only 32-bit CPUs here.
     6  		 */
     7 +
     8 +		if (!(tcp->flags & TCB_INSYSCALL) &&
     9 +		    (tcp->flags & TCB_WAITEXECVE)) {
    10 +			/* caught a fake syscall from the execve's exit */
    11 +			tcp->flags &= ~TCB_WAITEXECVE;
    12 +			return 0;
    13 +		}
    14 + 
    15 +
    16  		if (regs.ARM_cpsr & 0x20) {
    17  			/*
    18  			 * Get the Thumb-mode system call number