summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2011-07-19 09:05:22 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2011-07-19 09:05:22 +0000
commit887fbd720324441d6e87cb088d5407bca274e1bd (patch)
tree482da8996e1515692854959c1fdeba7d47674460 /src/emu/debug/debugcpu.c
parent2e549870b734c9b9212c3519d3d4438037c4fb4f (diff)
Allow break into debugger for screen less systems (no whatsnew)
Diffstat (limited to 'src/emu/debug/debugcpu.c')
-rw-r--r--src/emu/debug/debugcpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index 8489d9e1666..02411ef6418 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -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