diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2024-02-07 16:38:08 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2024-02-09 17:52:40 +0000 |
commit | 4aad096587a28ef967f319279bca78e2b216b7f3 (patch) | |
tree | e88c236e9b39c90181ed771cfa2ee7f4d707d411 /gdbstub/user-target.c | |
parent | 2df1eb2756658dc2c0e9d739cec6929e74e6c3b0 (diff) |
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/user-target.c')
-rw-r--r-- | gdbstub/user-target.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdbstub/user-target.c b/gdbstub/user-target.c index c4bba4c72c..b7d4c37cd8 100644 --- a/gdbstub/user-target.c +++ b/gdbstub/user-target.c @@ -418,3 +418,8 @@ void gdb_handle_query_xfer_exec_file(GArray *params, void *user_ctx) ts->bprm->filename + offset); gdb_put_strbuf(); } + +int gdb_target_sigtrap(void) +{ + return TARGET_SIGTRAP; +} |