From 1991ad3e6603be220ee5cba59dd2b5133c3415da Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 25 Jan 2016 15:00:35 +0100 Subject: [PATCH] Fixed bug debugging drivers with es5510 core, possibly some others that do not have AS_PROGRAM at all (nw) --- src/emu/debug/dvdisasm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emu/debug/dvdisasm.cpp b/src/emu/debug/dvdisasm.cpp index e873b0be8bb..e8becd1954d 100644 --- a/src/emu/debug/dvdisasm.cpp +++ b/src/emu/debug/dvdisasm.cpp @@ -100,7 +100,8 @@ void debug_view_disasm::enumerate_sources() for (device_disasm_interface *dasm = iter.first(); dasm != nullptr; dasm = iter.next()) { strprintf(name,"%s '%s'", dasm->device().name(), dasm->device().tag()); - m_source_list.append(*global_alloc(debug_view_disasm_source(name.c_str(), dasm->device()))); + if (dasm->device().memory().space_config(AS_PROGRAM)!=nullptr) + m_source_list.append(*global_alloc(debug_view_disasm_source(name.c_str(), dasm->device()))); } // reset the source to a known good entry