From: Paolo Bonzini Date: Thu, 30 May 2013 11:20:40 +0000 (+0200) Subject: gdbstub: do not restart crashed guest X-Git-Tag: v1.6.0-rc0~267 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=87f25c12bfeaaa0c41fb857713bbc7e8a9b757dc;p=users%2Fdwmw2%2Fqemu.git gdbstub: do not restart crashed guest If a guest has crashed with an internal error or similar, detaching gdb (or any other debugger action) should not restart it. Cc: Jan Kiszka Signed-off-by: Paolo Bonzini Reviewed-by: Laszlo Ersek Message-id: 1369912840-18577-1-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori --- diff --git a/gdbstub.c b/gdbstub.c index e80e1d32b1..90e54cb4e3 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -371,7 +371,9 @@ static inline void gdb_continue(GDBState *s) #ifdef CONFIG_USER_ONLY s->running_state = 1; #else - vm_start(); + if (runstate_check(RUN_STATE_DEBUG)) { + vm_start(); + } #endif }