diff options
author | 2015-03-16 17:35:10 -0700 | |
---|---|---|
committer | 2015-03-16 17:35:28 -0700 | |
commit | 672ce6c666a14418467c370ece126ce240da523b (patch) | |
tree | 2836e495481884be3b5e1a452b4b8595a74c9d8f | |
parent | a9a20f08892ecb4232b6665ef893a5704eaf7dff (diff) |
debugwin.c: avoid race condition where debugger window update request is made before debugger is initialised [Peter Ferrie]
-rw-r--r-- | src/osd/modules/debugger/debugwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/debugger/debugwin.c b/src/osd/modules/debugger/debugwin.c index 1ae50bc3c8d..73bcd59c6e3 100644 --- a/src/osd/modules/debugger/debugwin.c +++ b/src/osd/modules/debugger/debugwin.c @@ -154,7 +154,7 @@ void debugger_windows::wait_for_debugger(device_t &device, bool firststop) void debugger_windows::debugger_update() { // if we're running live, do some checks - if (!winwindow_has_focus() && !debug_cpu_is_stopped(*m_machine) && (m_machine->phase() == MACHINE_PHASE_RUNNING)) + if (!winwindow_has_focus() && m_machine && !debug_cpu_is_stopped(*m_machine) && (m_machine->phase() == MACHINE_PHASE_RUNNING)) { // see if the interrupt key is pressed and break if it is if (seq_pressed()) |