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

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