mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
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:
committed by
Alex Bennée
parent
d4e1369abe
commit
3d6ed98da8
@ -145,6 +145,7 @@ void fork_start(void)
|
||||
mmap_fork_start();
|
||||
cpu_list_lock();
|
||||
qemu_plugin_user_prefork_lock();
|
||||
gdbserver_fork_start();
|
||||
}
|
||||
|
||||
void fork_end(int child)
|
||||
|
Reference in New Issue
Block a user