From bc7d0e66741724216cc104034838eb34f0e94b8d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 3 Jun 2013 17:06:55 +0200 Subject: gdbstub: let the debugger resume from guest panicked state While in general we forbid a "continue" from the guest panicked state, it makes sense to have an exception for that when continuing in the debugger. Perhaps the guest entered that state due to a bug, for example, and we want to continue no matter what. Signed-off-by: Paolo Bonzini Reviewed-by: Luiz Capitulino Message-id: 1370272015-9659-3-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori --- gdbstub.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdbstub.c') diff --git a/gdbstub.c b/gdbstub.c index e8541f365d..94c78ced56 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -371,6 +371,9 @@ static inline void gdb_continue(GDBState *s) #ifdef CONFIG_USER_ONLY s->running_state = 1; #else + if (runstate_check(RUN_STATE_GUEST_PANICKED)) { + runstate_set(RUN_STATE_DEBUG); + } if (!runstate_needs_reset()) { vm_start(); } -- cgit v1.2.1