aboutsummaryrefslogtreecommitdiff
path: root/gdbstub/user.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2024-02-07 16:38:10 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-02-09 17:52:40 +0000
commit0a0d87c9b851338934f3018e9c18139b6c26f405 (patch)
tree5b54ea11efc7d7ab3511e0d8ceb6465b5869646a /gdbstub/user.c
parent8b7fcb8ed159d1caeb0b6e5b753b539d65092282 (diff)
downloadqemu-0a0d87c9b851338934f3018e9c18139b6c26f405.zip
qemu-0a0d87c9b851338934f3018e9c18139b6c26f405.tar.gz
qemu-0a0d87c9b851338934f3018e9c18139b6c26f405.tar.bz2
gdbstub: Add syscall entry/return hooks
The upcoming syscall catchpoint support needs to get control on syscall entry and return. Provide the necessary hooks for that, which are no-ops for now. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Message-Id: <20240202152506.279476-4-iii@linux.ibm.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240207163812.3231697-13-alex.bennee@linaro.org>
Diffstat (limited to 'gdbstub/user.c')
-rw-r--r--gdbstub/user.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdbstub/user.c b/gdbstub/user.c
index 63edca1..2ba01c1 100644
--- a/gdbstub/user.c
+++ b/gdbstub/user.c
@@ -502,3 +502,11 @@ void gdb_syscall_handling(const char *syscall_packet)
gdb_put_packet(syscall_packet);
gdb_handlesig(gdbserver_state.c_cpu, 0);
}
+
+void gdb_syscall_entry(CPUState *cs, int num)
+{
+}
+
+void gdb_syscall_return(CPUState *cs, int num)
+{
+}