Re: [PATCH v3 3/9] gdbstub: Add support for target-specific stubs

2024-06-23 Thread Gustavo Romero
Hi Alex, On 6/21/24 5:11 AM, Alex Bennée wrote: Gustavo Romero writes: 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_feature

Re: [PATCH v3 3/9] gdbstub: Add support for target-specific stubs

2024-06-21 Thread Alex Bennée
Richard Henderson writes: > On 6/16/24 23:28, Gustavo Romero wrote: >> +static char *extended_qsupported_features; >> +void gdb_extend_qsupported_features(char *qsupported_features) >> +{ >> +extended_qsupported_features = qsupported_features; >> +} > > Assert these functions aren't called tw

Re: [PATCH v3 3/9] gdbstub: Add support for target-specific stubs

2024-06-21 Thread Alex Bennée
Gustavo Romero writes: > 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

Re: [PATCH v3 3/9] gdbstub: Add support for target-specific stubs

2024-06-20 Thread Richard Henderson
On 6/16/24 23:28, Gustavo Romero wrote: +static char *extended_qsupported_features; +void gdb_extend_qsupported_features(char *qsupported_features) +{ +extended_qsupported_features = qsupported_features; +} Assert these functions aren't called twice. That should be good enough until we need

[PATCH v3 3/9] gdbstub: Add support for target-specific stubs

2024-06-16 Thread Gustavo Romero
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 t