Allow break into debugger for screen less systems (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-07-19 09:05:22 +00:00
parent 2e549870b7
commit 887fbd7203

View File

@ -1797,6 +1797,11 @@ void device_debug::start_hook(attotime endtime)
else if (ui_input_pressed(m_device.machine(), IPT_UI_DEBUG_BREAK))
global->visiblecpu->debug()->halt_on_next_instruction("User-initiated break\n");
}
// Check for screenless systems
if (m_device.machine().first_screen()==NULL) {
if (ui_input_pressed(m_device.machine(), IPT_UI_DEBUG_BREAK))
global->visiblecpu->debug()->halt_on_next_instruction("User-initiated break\n");
}
}
// recompute the debugging mode