gdbstub: replace exit calls with proper shutdown for softmmu
authorClément Chigot <chigot@adacore.com>
Tue, 3 Oct 2023 07:14:27 +0000 (09:14 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 12 Oct 2023 02:36:37 +0000 (12:36 +1000)
commite216256ae9fc3d1988e3f1af3f644b4dafb79838
tree638a815b75d36fd4c7fd421db36d45235c82fd1a
parent354c96069c4b6af176c03b046087e971ac621177
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>
gdbstub/gdbstub.c
gdbstub/system.c
gdbstub/user.c
include/gdbstub/syscalls.h