From: Paolo Bonzini Date: Thu, 30 May 2013 11:20:40 +0000 (+0200) Subject: gdbstub: do not restart crashed guest X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~345 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=87f25c12bfeaaa0c41fb857713bbc7e8a9b757dc;p=qemu-upstream-4.5-testing.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 e80e1d32b..90e54cb4e 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 }