summary refs log tree commit diff stats
path: root/include/gdbstub/user.h
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 /include/gdbstub/user.h
parent8b7fcb8ed159d1caeb0b6e5b753b539d65092282 (diff)
downloadfocaccia-qemu-0a0d87c9b851338934f3018e9c18139b6c26f405.tar.gz
focaccia-qemu-0a0d87c9b851338934f3018e9c18139b6c26f405.zip
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 'include/gdbstub/user.h')
-rw-r--r--include/gdbstub/user.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gdbstub/user.h b/include/gdbstub/user.h
index 1fc43e04af..68b6534130 100644
--- a/include/gdbstub/user.h
+++ b/include/gdbstub/user.h
@@ -51,5 +51,18 @@ void gdb_signalled(CPUArchState *as, int sig);
  */
 void gdbserver_fork(CPUState *cs);
 
+/**
+ * gdb_syscall_entry() - inform gdb of syscall entry and yield control to it
+ * @cs: CPU
+ * @num: syscall number
+ */
+void gdb_syscall_entry(CPUState *cs, int num);
+
+/**
+ * gdb_syscall_entry() - inform gdb of syscall return and yield control to it
+ * @cs: CPU
+ * @num: syscall number
+ */
+void gdb_syscall_return(CPUState *cs, int num);
 
 #endif /* GDBSTUB_USER_H */