qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] gdbstub: do not restart crashed guest
@ 2013-05-30 11:20 Paolo Bonzini
  2013-05-30 11:55 ` Laszlo Ersek
  2013-05-31 18:48 ` Anthony Liguori
  0 siblings, 2 replies; 4+ messages in thread
From: Paolo Bonzini @ 2013-05-30 11:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jan Kiszka

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 <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 gdbstub.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gdbstub.c b/gdbstub.c
index e80e1d3..90e54cb 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
 }
 
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-31 18:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 11:20 [Qemu-devel] [PATCH] gdbstub: do not restart crashed guest Paolo Bonzini
2013-05-30 11:55 ` Laszlo Ersek
2013-05-30 12:43   ` Luiz Capitulino
2013-05-31 18:48 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).