public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Carl Love <carll@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] PowerPC, add support for recording pipe2 system call. Date: Mon, 31 Oct 2022 18:44:03 +0000 (GMT) [thread overview] Message-ID: <20221031184403.D9A4C385BC13@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=15a1e4e2a7dac11fdf338c70efc355348d8a6d49 commit 15a1e4e2a7dac11fdf338c70efc355348d8a6d49 Author: Carl Love <cel@us.ibm.com> Date: Mon Oct 31 14:43:47 2022 -0400 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: --- gdb/ppc-linux-tdep.c | 2 ++ 1 file changed, 2 insertions(+) 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)
reply other threads:[~2022-10-31 18:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221031184403.D9A4C385BC13@sourceware.org \ --to=carll@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).