Adjust debug handling

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2010-03-29 19:23:46 +00:00
parent 6d8ff4d85c
commit 54fc6ea92b
1 changed files with 3 additions and 3 deletions

6
vl.c
View File

@ -2920,7 +2920,7 @@ static bool tcg_cpu_exec(void)
if (ret == EXCP_DEBUG) { if (ret == EXCP_DEBUG) {
gdb_set_stop_cpu(env); gdb_set_stop_cpu(env);
debug_requested = 1; debug_requested = EXCP_DEBUG;
break; break;
} }
} }
@ -2983,8 +2983,8 @@ static void main_loop(void)
#endif #endif
} while (vm_can_run()); } while (vm_can_run());
if (qemu_debug_requested()) { if ((r = qemu_debug_requested())) {
vm_stop(EXCP_DEBUG); vm_stop(r);
} }
if (qemu_shutdown_requested()) { if (qemu_shutdown_requested()) {
monitor_protocol_event(QEVENT_SHUTDOWN, NULL); monitor_protocol_event(QEVENT_SHUTDOWN, NULL);