gdbstub: Introduce gdb_handle_set_thread_user()

The upcoming follow-fork-mode child support needs to perform certain
actions when GDB switches between the stopped parent and the stopped
child. Introduce a user-specific hook for this.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240219141628.246823-10-iii@linux.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240305121005.3528075-11-alex.bennee@linaro.org>
This commit is contained in:
Ilya Leoshkevich 2024-03-05 12:09:46 +00:00 committed by Alex Bennée
parent 6d923112fd
commit e454f2fe24
3 changed files with 15 additions and 2 deletions

View file

@ -386,6 +386,11 @@ void gdb_handle_query_supported_user(const char *gdb_supported)
{
}
bool gdb_handle_set_thread_user(uint32_t pid, uint32_t tid)
{
return false;
}
/*
* Execution state helpers
*/