mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 15:42:09 -06:00
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>
This commit is contained in:
parent
133f202b19
commit
60f4ce8e2c
2 changed files with 118 additions and 6 deletions
|
@ -69,4 +69,26 @@ typedef struct GdbCmdParseEntry {
|
|||
*/
|
||||
int gdb_put_packet(const char *buf);
|
||||
|
||||
/**
|
||||
* gdb_extend_query_table() - Extend query table.
|
||||
* @table: The table with the additional query packet handlers.
|
||||
* @size: The number of handlers to be added.
|
||||
*/
|
||||
void gdb_extend_query_table(GdbCmdParseEntry *table, int size);
|
||||
|
||||
/**
|
||||
* gdb_extend_set_table() - Extend set table.
|
||||
* @table: The table with the additional set packet handlers.
|
||||
* @size: The number of handlers to be added.
|
||||
*/
|
||||
void gdb_extend_set_table(GdbCmdParseEntry *table, int size);
|
||||
|
||||
/**
|
||||
* gdb_extend_qsupported_features() - Extend the qSupported features string.
|
||||
* @qsupported_features: The additional qSupported feature(s) string. The string
|
||||
* should start with a semicolon and, if there are more than one feature, the
|
||||
* features should be separate by a semiocolon.
|
||||
*/
|
||||
void gdb_extend_qsupported_features(char *qsupported_features);
|
||||
|
||||
#endif /* GDBSTUB_COMMANDS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue