From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1983) id D9A4C385BC13; Mon, 31 Oct 2022 18:44:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9A4C385BC13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667241843; bh=fcO0mzognYOpal+KyS3GZbFaCsittwMdWFUeISUnvKM=; h=From:To:Subject:Date:From; b=pyw6gn619OlsAq9JAVx9SL1G+DMp22GTfu580/eJ8436Zq01KjKLcOthz+ZnBelie DjKQrNuGqdK9NgICi6w7mOGAZrPRAQgMPTuOoRjPfdMw9AjvtRLN1AwnS1ijTKOeJx RJmsVbECf4JN7Sk3OyAGwyexKvYmNACs9o06tWvw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Carl Love To: gdb-cvs@sourceware.org Subject: [binutils-gdb] PowerPC, add support for recording pipe2 system call. X-Act-Checkin: binutils-gdb X-Git-Author: Carl Love X-Git-Refname: refs/heads/master X-Git-Oldrev: 8f0212acb19da47fa9d9feeaae42e71c8817cafc X-Git-Newrev: 15a1e4e2a7dac11fdf338c70efc355348d8a6d49 Message-Id: <20221031184403.D9A4C385BC13@sourceware.org> Date: Mon, 31 Oct 2022 18:44:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D15a1e4e2a7da= c11fdf338c70efc355348d8a6d49 commit 15a1e4e2a7dac11fdf338c70efc355348d8a6d49 Author: Carl Love Date: Mon Oct 31 14:43:47 2022 -0400 PowerPC, add support for recording pipe2 system call. =20 Test gdb.reverse/pipe-reverse.exp fails on Power 10 running the fedora = 36 distro. The gdb record error message is: =20 Process record and replay target doesn't support syscall number 317. =20 System call 317 on PowerPC maps to the pipe2 system call. =20 This patch adds support for the missing pipe2 system call for PowerPC. =20 Patch fixes the test failure in gdb.reverse/pipe-reverse.exp. =20 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 =3D gdb_sys_fstatat64; } + else if (syscall =3D=3D 317) + result =3D gdb_sys_pipe2; else if (syscall =3D=3D 336) result =3D gdb_sys_recv; else if (syscall =3D=3D 337)