[PATCH 0/2] gdbstub: Implement catching syscalls

Ilya Leoshkevich posted 2 patches 10 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240116004141.78626-1-iii@linux.ibm.com
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Riku Voipio <riku.voipio@iki.fi>
There is a newer version of this series
gdbstub/gdbstub.c                             | 11 +++-
gdbstub/internals.h                           | 16 ++++++
gdbstub/system.c                              |  1 +
gdbstub/user-target.c                         | 39 ++++++++++++++
gdbstub/user.c                                | 51 +++++++++++++++++-
include/gdbstub/user.h                        | 29 ++++++++++-
include/user/syscall-trace.h                  |  7 ++-
tests/tcg/multiarch/Makefile.target           | 10 +++-
tests/tcg/multiarch/catch-syscalls.c          | 51 ++++++++++++++++++
tests/tcg/multiarch/gdbstub/catch-syscalls.py | 52 +++++++++++++++++++
10 files changed, 260 insertions(+), 7 deletions(-)
create mode 100644 tests/tcg/multiarch/catch-syscalls.c
create mode 100644 tests/tcg/multiarch/gdbstub/catch-syscalls.py
[PATCH 0/2] gdbstub: Implement catching syscalls
Posted by Ilya Leoshkevich 10 months, 2 weeks ago
Based-on: <20240116003551.75168-1-iii@linux.ibm.com>
([PATCH v3 0/3] linux-user: Allow gdbstub to ignore page protection)

Hi,

I noticed that GDB's "catch syscall" does not work with qemu-user.
This series adds the missing bits in [1/2] and a test in [2/2].
I'm basing this on my other series, since it contains useful gdbstub
test refactorings.

Best regards,
Ilya

Ilya Leoshkevich (2):
  gdbstub: Implement catching syscalls
  tests/tcg: Add the syscall catchpoint gdbstub test

 gdbstub/gdbstub.c                             | 11 +++-
 gdbstub/internals.h                           | 16 ++++++
 gdbstub/system.c                              |  1 +
 gdbstub/user-target.c                         | 39 ++++++++++++++
 gdbstub/user.c                                | 51 +++++++++++++++++-
 include/gdbstub/user.h                        | 29 ++++++++++-
 include/user/syscall-trace.h                  |  7 ++-
 tests/tcg/multiarch/Makefile.target           | 10 +++-
 tests/tcg/multiarch/catch-syscalls.c          | 51 ++++++++++++++++++
 tests/tcg/multiarch/gdbstub/catch-syscalls.py | 52 +++++++++++++++++++
 10 files changed, 260 insertions(+), 7 deletions(-)
 create mode 100644 tests/tcg/multiarch/catch-syscalls.c
 create mode 100644 tests/tcg/multiarch/gdbstub/catch-syscalls.py

-- 
2.43.0