mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06: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:
parent
d4e1369abe
commit
3d6ed98da8
4 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue