public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Powerpc: Add support for openat and fstatat syscalls
@ 2021-10-05 20:59 Carl Love
  2021-10-07 17:52 ` Ulrich Weigand
       [not found] ` <OF499743BD.418B9A20-ONC1258767.0061CCF4-C1258767.006229AD@us.ibm.com>
  0 siblings, 2 replies; 9+ messages in thread
From: Carl Love @ 2021-10-05 20:59 UTC (permalink / raw)
  To: gdb-patches, Ulrich Weigand; +Cc: cel, Will Schmidt, Rogerio Alves


GDB maintainers:

The following patch adds the sycall support for the openat and fstatat
system calls.  The missing support results in gdb.reverse/fstatat-
reverse.exp reporting a failure.

The following patch adds the support.  The testcase runs without any
failures.  The patch was tested on a Power 9 system.

Please let me know if the patch is acceptable for mainline.  Thanks.

                        Carl 


-----------------------------------------------
Powerpc: Add support for openat and fstatat syscalls

[gdb] update ppc-linux-tdep.c

Add else if syscall entries for the openat and fstatat system calls.
---
 gdb/ppc-linux-tdep.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index ea8e3b98fa4..d49e142494f 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -1391,6 +1391,10 @@ ppc_canonicalize_syscall (int syscall)
     result = syscall += 259 - 240;
   else if (syscall >= 250 && syscall <= 251)	/* tgkill */
     result = syscall + 270 - 250;
+  else if (syscall == 286)
+    result = gdb_sys_openat;
+  else if (syscall == 291)
+    result = gdb_sys_fstatat64;
   else if (syscall == 336)
     result = gdb_sys_recv;
   else if (syscall == 337)
-- 
2.25.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-10-14 11:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 20:59 [PATCH] Powerpc: Add support for openat and fstatat syscalls Carl Love
2021-10-07 17:52 ` Ulrich Weigand
2021-10-07 19:43   ` Sergio Durigan Junior
     [not found] ` <OF499743BD.418B9A20-ONC1258767.0061CCF4-C1258767.006229AD@us.ibm.com>
2021-10-11 21:17   ` Carl Love
2021-10-11 21:57     ` will schmidt
2021-10-12 19:13       ` Carl Love
2021-10-13 13:08         ` Ulrich Weigand
     [not found]         ` <OF8D70D176.67629273-ONC125876D.00479F81-C125876D.004826BA@us.ibm.com>
2021-10-13 21:55           ` Carl Love
2021-10-14 11:21             ` Ulrich Weigand

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).