From: Carl Love Date: Mon, 31 Oct 2022 18:43:47 +0000 (-0400) Subject: PowerPC, add support for recording pipe2 system call. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15a1e4e2a7dac11fdf338c70efc355348d8a6d49;p=binutils-gdb.git PowerPC, add support for recording pipe2 system call. Test gdb.reverse/pipe-reverse.exp fails on Power 10 running the fedora 36 distro. The gdb record error message is: Process record and replay target doesn't support syscall number 317. System call 317 on PowerPC maps to the pipe2 system call. This patch adds support for the missing pipe2 system call for PowerPC. Patch fixes the test failure in gdb.reverse/pipe-reverse.exp. The patch has been tested on Power 10 with no regression failures. --- diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 14800619cbe..cc5a26431ba 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1400,6 +1400,8 @@ ppc_canonicalize_syscall (int syscall, int wordsize) else result = gdb_sys_fstatat64; } + else if (syscall == 317) + result = gdb_sys_pipe2; else if (syscall == 336) result = gdb_sys_recv; else if (syscall == 337)