summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-25 15:00:35 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-25 15:00:35 +0100
commit1991ad3e6603be220ee5cba59dd2b5133c3415da (patch)
treed2c6dbd5d131c6003d1628900448da8f830b0794
parent30cdc5a1f7711891b8eceee27a9bfa7c47f743f4 (diff)
Fixed bug debugging drivers with es5510 core, possibly some others that do not have AS_PROGRAM at all (nw)
-rw-r--r--src/emu/debug/dvdisasm.cpp3
1 files changed, 2 insertions, 1 deletions
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