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