diff options
Diffstat (limited to 'meta/packages/strace/strace')
-rw-r--r-- | meta/packages/strace/strace/arm-compilation.patch | 10 | ||||
-rw-r--r-- | meta/packages/strace/strace/arm-syscall.patch | 16 | ||||
-rw-r--r-- | meta/packages/strace/strace/strace-fix-arm-bad-syscall.patch | 18 |
3 files changed, 44 insertions, 0 deletions
diff --git a/meta/packages/strace/strace/arm-compilation.patch b/meta/packages/strace/strace/arm-compilation.patch new file mode 100644 index 0000000000..9dd7133ce1 --- /dev/null +++ b/meta/packages/strace/strace/arm-compilation.patch | |||
@@ -0,0 +1,10 @@ | |||
1 | --- strace-4.4.98/syscall.c~arm-compilation 2003-06-04 01:29:04.000000000 +0200 | ||
2 | +++ strace-4.4.98/syscall.c 2003-09-01 00:13:02.000000000 +0200 | ||
3 | @@ -696,6 +696,7 @@ | ||
4 | static int d0; | ||
5 | #elif defined (ARM) | ||
6 | static struct pt_regs regs; | ||
7 | + static long r0; | ||
8 | #elif defined (ALPHA) | ||
9 | static long r0; | ||
10 | static long a3; | ||
diff --git a/meta/packages/strace/strace/arm-syscall.patch b/meta/packages/strace/strace/arm-syscall.patch new file mode 100644 index 0000000000..952d09bb24 --- /dev/null +++ b/meta/packages/strace/strace/arm-syscall.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- /dev/null | ||
7 | +++ strace-4.4.98/linux/arm/syscall.h | ||
8 | @@ -0,0 +1,2 @@ | ||
9 | +#include "../syscall.h" | ||
10 | +#include "dummy.h" | ||
11 | --- /dev/null | ||
12 | +++ strace-4.4.98/linux/arm/dummy.h | ||
13 | @@ -0,0 +1,3 @@ | ||
14 | +#include "../dummy.h" | ||
15 | +#undef SYS_waitpid | ||
16 | +#define sys_waitpid printargs | ||
diff --git a/meta/packages/strace/strace/strace-fix-arm-bad-syscall.patch b/meta/packages/strace/strace/strace-fix-arm-bad-syscall.patch new file mode 100644 index 0000000000..d7d7426b74 --- /dev/null +++ b/meta/packages/strace/strace/strace-fix-arm-bad-syscall.patch | |||
@@ -0,0 +1,18 @@ | |||
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 | ||