Blame SOURCES/ltrace-0.7.91-ppc64le-scv.patch
|
|
71a0ac |
diff -rup a/sysdeps/linux-gnu/ppc/trace.c b/sysdeps/linux-gnu/ppc/trace.c
|
|
|
71a0ac |
--- a/sysdeps/linux-gnu/ppc/trace.c 2021-02-08 14:35:16.876494095 -0500
|
|
|
71a0ac |
+++ b/sysdeps/linux-gnu/ppc/trace.c 2021-02-08 15:05:59.468107311 -0500
|
|
|
71a0ac |
@@ -57,6 +57,7 @@ get_arch_dep(struct process *proc)
|
|
|
71a0ac |
}
|
|
|
71a0ac |
|
|
|
71a0ac |
#define SYSCALL_INSN 0x44000002
|
|
|
71a0ac |
+#define SYSCALL2_INSN 0x44000001
|
|
|
71a0ac |
|
|
|
71a0ac |
/* Returns 1 if syscall, 2 if sysret, 0 otherwise. */
|
|
|
71a0ac |
int
|
|
|
71a0ac |
@@ -75,7 +76,7 @@ syscall_p(struct process *proc, int stat
|
|
|
71a0ac |
0);
|
|
|
71a0ac |
#endif
|
|
|
71a0ac |
|
|
|
71a0ac |
- if (insn == SYSCALL_INSN) {
|
|
|
71a0ac |
+ if (insn == SYSCALL_INSN || insn == SYSCALL2_INSN) {
|
|
|
71a0ac |
*sysnum =
|
|
|
71a0ac |
(int)ptrace(PTRACE_PEEKUSER, proc->pid,
|
|
|
71a0ac |
sizeof(long) * PT_R0, 0);
|