diff options
author | 2020-05-07 10:54:29 -0400 | |
---|---|---|
committer | 2020-05-07 10:54:29 -0400 | |
commit | 838d82d5dbb6cd34c2ac627d99cbc92f3f7b17d5 (patch) | |
tree | 338512df1a5321c1a73d635c26523af7355f71ab | |
parent | 93dacdc926b5bbec52c683dde917195ebcacce2c (diff) |
Fix focus command (nw)
-rw-r--r-- | src/emu/debug/debugcpu.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 17468e6da49..a02aa9f49aa 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -1147,7 +1147,7 @@ void debugger_cpu::start_hook(device_t *device, bool stop_on_vblank) m_livecpu = device; // if we're a new device, stop now - if (m_stop_when_not_device != nullptr && m_stop_when_not_device != device) + if (m_stop_when_not_device != nullptr && m_stop_when_not_device != device && device->debug()->observing()) { m_stop_when_not_device = nullptr; m_execution_state = exec_state::STOPPED; @@ -1183,7 +1183,10 @@ void debugger_cpu::start_hook(device_t *device, bool stop_on_vblank) } // check for debug keypresses if (m_machine.ui_input().pressed(IPT_UI_DEBUG_BREAK)) + { + m_visiblecpu->debug()->ignore(false); m_visiblecpu->debug()->halt_on_next_instruction("User-initiated break\n"); + } } } |