Blame SOURCES/ltrace-0.7.91-ppc64le-scv.patch

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