aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-tdep.c
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2022-10-31 14:43:47 -0400
committerCarl Love <cel@us.ibm.com>2022-10-31 14:43:47 -0400
commit15a1e4e2a7dac11fdf338c70efc355348d8a6d49 (patch)
tree1ed93514e53b40677d78ad5b046d72cabc5d42a9 /gdb/ppc-linux-tdep.c
parent8f0212acb19da47fa9d9feeaae42e71c8817cafc (diff)
downloadgdb-15a1e4e2a7dac11fdf338c70efc355348d8a6d49.zip
gdb-15a1e4e2a7dac11fdf338c70efc355348d8a6d49.tar.gz
gdb-15a1e4e2a7dac11fdf338c70efc355348d8a6d49.tar.bz2
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.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
-rw-r--r--gdb/ppc-linux-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 1480061..cc5a264 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)