aboutsummaryrefslogtreecommitdiff
path: root/gdbstub/internals.h
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2024-03-09 03:09:00 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-03-13 11:43:52 +0000
commit9ae5801d35b5228583dfcdb9c76cf2c6f4566215 (patch)
tree8f7db8e8ff3b011e5b502d97da88c805a47755bd /gdbstub/internals.h
parentf84e313e0278222eb88b9ca29311f0df71abd001 (diff)
downloadqemu-9ae5801d35b5228583dfcdb9c76cf2c6f4566215.zip
qemu-9ae5801d35b5228583dfcdb9c76cf2c6f4566215.tar.gz
qemu-9ae5801d35b5228583dfcdb9c76cf2c6f4566215.tar.bz2
gdbstub: Add Xfer:siginfo:read stub
Add stub to handle Xfer:siginfo:read packet query that requests the machine's siginfo data. This is used when GDB user executes 'print $_siginfo' and when the machine stops due to a signal, for instance, on SIGSEGV. The information in siginfo allows GDB to determiner further details on the signal, like the fault address/insn when the SIGSEGV is caught. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> Message-Id: <20240309030901.1726211-5-gustavo.romero@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@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 b472459..e83b179 100644
--- a/gdbstub/internals.h
+++ b/gdbstub/internals.h
@@ -190,6 +190,7 @@ typedef union GdbCmdVariant {
void gdb_handle_query_rcmd(GArray *params, void *user_ctx); /* softmmu */
void gdb_handle_query_offsets(GArray *params, void *user_ctx); /* user */
void gdb_handle_query_xfer_auxv(GArray *params, void *user_ctx); /*user */
+void gdb_handle_query_xfer_siginfo(GArray *params, void *user_ctx); /*user */
void gdb_handle_v_file_open(GArray *params, void *user_ctx); /* user */
void gdb_handle_v_file_close(GArray *params, void *user_ctx); /* user */
void gdb_handle_v_file_pread(GArray *params, void *user_ctx); /* user */