gdbstub: fix for commit 87f25c12bf
This commit used the wrong check to prevent an assertion failure. After this commit, you need to start a guest in the monitor, you cannot use anymore the "c" command in the debugger. This is undesirable. The commit's aim was to prevent a restart after a KVM internal error or something like that; use runstate_needs_reset() for that. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Message-id: 1370272015-9659-2-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4f293bd6e5
commit
26ac7a31fb
@ -371,7 +371,7 @@ static inline void gdb_continue(GDBState *s)
|
|||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
s->running_state = 1;
|
s->running_state = 1;
|
||||||
#else
|
#else
|
||||||
if (runstate_check(RUN_STATE_DEBUG)) {
|
if (!runstate_needs_reset()) {
|
||||||
vm_start();
|
vm_start();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user