summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlue Swirl2010-03-29 21:23:46 +0200
committerBlue Swirl2010-03-29 21:23:46 +0200
commit54fc6ea92bdd698498706d3cd8e10afd78680bed (patch)
tree1a56390742c25e6e97adb04a33cc2941d8f3aab1
parenttcg/mips: fix branch offset during retranslation (diff)
downloadqemu-54fc6ea92bdd698498706d3cd8e10afd78680bed.tar.gz
qemu-54fc6ea92bdd698498706d3cd8e10afd78680bed.tar.xz
qemu-54fc6ea92bdd698498706d3cd8e10afd78680bed.zip
Adjust debug handling
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--vl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 8a73235ade..a2869b8dbe 100644
--- a/vl.c
+++ b/vl.c
@@ -2920,7 +2920,7 @@ static bool tcg_cpu_exec(void)
if (ret == EXCP_DEBUG) {
gdb_set_stop_cpu(env);
- debug_requested = 1;
+ debug_requested = EXCP_DEBUG;
break;
}
}
@@ -2983,8 +2983,8 @@ static void main_loop(void)
#endif
} while (vm_can_run());
- if (qemu_debug_requested()) {
- vm_stop(EXCP_DEBUG);
+ if ((r = qemu_debug_requested())) {
+ vm_stop(r);
}
if (qemu_shutdown_requested()) {
monitor_protocol_event(QEVENT_SHUTDOWN, NULL);