summary refs log tree commit diff stats
path: root/gdbstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 90e54cb4e3..94c78ced56 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -371,7 +371,10 @@ static inline void gdb_continue(GDBState *s)
 #ifdef CONFIG_USER_ONLY
     s->running_state = 1;
 #else
-    if (runstate_check(RUN_STATE_DEBUG)) {
+    if (runstate_check(RUN_STATE_GUEST_PANICKED)) {
+        runstate_set(RUN_STATE_DEBUG);
+    }
+    if (!runstate_needs_reset()) {
         vm_start();
     }
 #endif