]> www.infradead.org Git - users/dwmw2/qemu.git/commit
gdbstub: Add support for target-specific stubs
authorGustavo Romero <gustavo.romero@linaro.org>
Fri, 5 Jul 2024 08:40:39 +0000 (09:40 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 5 Jul 2024 11:35:05 +0000 (12:35 +0100)
commit60f4ce8e2cb9afebc7f3e40062087b91b7243c36
treeac115a0a700f1829dcf0834798be65ddd42753d3
parent133f202b19d8332de8d433c627fe6354e2ecf889
gdbstub: Add support for target-specific stubs

Currently, it's not possible to have stubs specific to a given target,
even though there are GDB features which are target-specific, like, for
instance, memory tagging.

This commit introduces gdb_extend_qsupported_features,
gdb_extend_query_table, and gdb_extend_set_table functions as interfaces
to extend the qSupported string, the query handler table, and the set
handler table, allowing target-specific stub implementations.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240628050850.536447-4-gustavo.romero@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-33-alex.bennee@linaro.org>
gdbstub/gdbstub.c
include/gdbstub/commands.h