Based-on: <20240116003551.75168-1-...@linux.ibm.com> ([PATCH v3 0/3] linux-user: Allow gdbstub to ignore page protection)
v1: https://lists.gnu.org/archive/html/qemu-devel/2024-01/msg02911.html v1 -> v2: Avoid touching the system gdbstub. Advertise QCatchSyscalls+ only on Linux. 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 | 9 ++ gdbstub/internals.h | 2 + gdbstub/user-target.c | 5 + gdbstub/user.c | 104 +++++++++++++++++- 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 +++++++++ 9 files changed, 263 insertions(+), 6 deletions(-) create mode 100644 tests/tcg/multiarch/catch-syscalls.c create mode 100644 tests/tcg/multiarch/gdbstub/catch-syscalls.py -- 2.43.0