public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Autogenerate gdb/syscalls/linux-defaults.xml.in (syscall groups) from strace sources
@ 2023-02-24 23:26 Pedro Alves
  2023-02-24 23:26 ` [PATCH 1/2] Autogenerate gdb/syscalls/linux-defaults.xml.in (groups) " Pedro Alves
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Pedro Alves @ 2023-02-24 23:26 UTC (permalink / raw)
  To: gdb-patches

While working on the step-over-thread-clone/exit series, I noticed
that one of the new tests was failing.  The test does "catch syscall
clone", and expects that pthread_create calls clone.  Turns out that
on the glibc shipped with Ubuntu 22.04, pthread_create calls clone3,
not clone.  To make the test cope with that, I thought of switching it
to "catch syscall group:process".  Surprisingly, that catches "clone",
but not "clone3".

This series fixes that, by adding a script that extracts the syscall
group info out the strace sources.

Pedro Alves (2):
  Autogenerate gdb/syscalls/linux-defaults.xml.in (groups) from strace
    sources
  Regenerate Linux syscall group info

 gdb/syscalls/aarch64-linux.xml        |  26 +-
 gdb/syscalls/amd64-linux.xml          | 106 ++---
 gdb/syscalls/arm-linux.xml            |  26 +-
 gdb/syscalls/bfin-linux.xml           |  26 +-
 gdb/syscalls/i386-linux.xml           | 124 +++---
 gdb/syscalls/linux-defaults.xml.in    | 545 ++++++++++++++++----------
 gdb/syscalls/mips-n32-linux.xml       | 122 +++---
 gdb/syscalls/mips-n64-linux.xml       | 100 ++---
 gdb/syscalls/mips-o32-linux.xml       | 122 +++---
 gdb/syscalls/ppc-linux.xml            | 124 +++---
 gdb/syscalls/ppc64-linux.xml          | 104 ++---
 gdb/syscalls/s390-linux.xml           | 122 +++---
 gdb/syscalls/s390x-linux.xml          | 102 ++---
 gdb/syscalls/sparc-linux.xml          | 114 +++---
 gdb/syscalls/sparc64-linux.xml        |  94 ++---
 gdb/syscalls/update-linux-defaults.sh |  95 +++++
 16 files changed, 1096 insertions(+), 856 deletions(-)
 create mode 100755 gdb/syscalls/update-linux-defaults.sh


base-commit: 2e977d9901393ea1bacbe1896af0929e968bc811
-- 
2.36.0


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

end of thread, other threads:[~2023-02-27 15:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 23:26 [PATCH 0/2] Autogenerate gdb/syscalls/linux-defaults.xml.in (syscall groups) from strace sources Pedro Alves
2023-02-24 23:26 ` [PATCH 1/2] Autogenerate gdb/syscalls/linux-defaults.xml.in (groups) " Pedro Alves
2023-02-25  3:00   ` Simon Marchi
2023-02-27 15:04     ` Pedro Alves
2023-02-24 23:26 ` [PATCH 2/2] Regenerate Linux syscall group info Pedro Alves
2023-02-25  9:31 ` [PATCH 0/2] Autogenerate gdb/syscalls/linux-defaults.xml.in (syscall groups) from strace sources Tom de Vries
2023-02-27 14:53   ` Pedro Alves

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