gdbstub: Introduce gdbserver_fork_start()

The upcoming follow-fork-mode child support requires knowing when
fork() is about to happen in order to initialize its state. Add a hook
for that.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240219141628.246823-5-iii@linux.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240305121005.3528075-6-alex.bennee@linaro.org>
This commit is contained in:
Ilya Leoshkevich 2024-03-05 12:09:41 +00:00 committed by Alex Bennée
parent d4e1369abe
commit 3d6ed98da8
4 changed files with 11 additions and 0 deletions

View file

@ -356,6 +356,10 @@ int gdbserver_start(const char *port_or_path)
return -1;
}
void gdbserver_fork_start(void)
{
}
static void disable_gdbstub(CPUState *thread_cpu)
{
CPUState *cpu;