Fix focus command (nw)

This commit is contained in:
AJR 2020-05-07 10:54:29 -04:00
parent 93dacdc926
commit 838d82d5db

View File

@ -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");
}
}
}