mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +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
@@ -1324,7 +1324,7 @@ static void handle_v_kill(GArray *params, void *user_ctx)
|
||||
gdb_put_packet("OK");
|
||||
error_report("QEMU: Terminated via GDBstub");
|
||||
gdb_exit(0);
|
||||
exit(0);
|
||||
gdb_qemu_exit(0);
|
||||
}
|
||||
|
||||
static const GdbCmdParseEntry gdb_v_commands_table[] = {
|
||||
@@ -1843,7 +1843,8 @@ static int gdb_handle_packet(const char *line_buf)
|
||||
/* Kill the target */
|
||||
error_report("QEMU: Terminated via GDBstub");
|
||||
gdb_exit(0);
|
||||
exit(0);
|
||||
gdb_qemu_exit(0);
|
||||
break;
|
||||
case 'D':
|
||||
{
|
||||
static const GdbCmdParseEntry detach_cmd_desc = {
|
||||
|
||||
Reference in New Issue
Block a user