summary refs log tree commit diff stats
path: root/gdbstub/internals.h
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2024-02-07 16:38:08 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-02-09 17:52:40 +0000
commit4aad096587a28ef967f319279bca78e2b216b7f3 (patch)
treee88c236e9b39c90181ed771cfa2ee7f4d707d411 /gdbstub/internals.h
parent2df1eb2756658dc2c0e9d739cec6929e74e6c3b0 (diff)
downloadfocaccia-qemu-4aad096587a28ef967f319279bca78e2b216b7f3.tar.gz
focaccia-qemu-4aad096587a28ef967f319279bca78e2b216b7f3.zip
gdbstub: Expose TARGET_SIGTRAP in a target-agnostic way
The upcoming syscall catchpoint support needs to send SIGTRAP stop
packets to GDB. Being able to compile this support only once for all
targets is a good thing, and it requires hiding TARGET_SIGTRAP behind
a function call.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240202152506.279476-2-iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240207163812.3231697-11-alex.bennee@linaro.org>
Diffstat (limited to 'gdbstub/internals.h')
-rw-r--r--gdbstub/internals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbstub/internals.h b/gdbstub/internals.h
index 5c0c725e54..aeb0d9b537 100644
--- a/gdbstub/internals.h
+++ b/gdbstub/internals.h
@@ -136,6 +136,7 @@ void gdb_append_thread_id(CPUState *cpu, GString *buf);
 int gdb_get_cpu_index(CPUState *cpu);
 unsigned int gdb_get_max_cpus(void); /* both */
 bool gdb_can_reverse(void); /* softmmu, stub for user */
+int gdb_target_sigtrap(void); /* user */
 
 void gdb_create_default_process(GDBState *s);