mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
gdbstub: replace exit calls with proper shutdown for softmmu
This replaces the exit calls by shutdown requests, ensuring a proper cleanup of Qemu. Features like net/vhost-vdpa.c are expecting qemu_cleanup to be called to remove their last residuals. Signed-off-by: Clément Chigot <chigot@adacore.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20231003071427.188697-6-chigot@adacore.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
committed by
Alistair Francis
parent
354c96069c
commit
e216256ae9
@@ -110,4 +110,13 @@ int use_gdb_syscalls(void);
|
||||
*/
|
||||
void gdb_exit(int code);
|
||||
|
||||
/**
|
||||
* gdb_qemu_exit: ask qemu to exit
|
||||
* @code: exit code reported
|
||||
*
|
||||
* This requests qemu to exit. This function is allowed to return as
|
||||
* the exit request might be processed asynchronously by qemu backend.
|
||||
*/
|
||||
void gdb_qemu_exit(int code);
|
||||
|
||||
#endif /* _SYSCALLS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user