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