mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Fix focus command (nw)
This commit is contained in:
parent
93dacdc926
commit
838d82d5db
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user