summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-06-24 05:21:19 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-06-24 05:21:19 +0000
commit75a009ac400f52e4ff9371f7f2ea08fe7dc47e0a (patch)
treee217dc093061399b7830508f6c3ca6cdaf9768ee /src/emu/debug/debugcpu.c
parent2be66a245ca0bd2e3990a1d997674ddc8b921bf1 (diff)
Do not stop in the debugger while we are waiting for a pending
event to occur. This eliminates some confusion during reset and state loading.
Diffstat (limited to 'src/emu/debug/debugcpu.c')
-rw-r--r--src/emu/debug/debugcpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index d0ad7d3e977..039024c2728 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -844,7 +844,7 @@ void mame_debug_hook(offs_t curpc)
}
/* if we are supposed to halt, do it now */
- if (execution_state == EXECUTION_STATE_STOPPED)
+ if (execution_state == EXECUTION_STATE_STOPPED && !mame_is_scheduled_event_pending(Machine) && !mame_is_save_or_load_pending(Machine))
{
/* reset the state */
steps_until_stop = 0;