Fixed bug debugging drivers with es5510 core, possibly some others that do not have AS_PROGRAM at all (nw)

This commit is contained in:
Miodrag Milanovic 2016-01-25 15:00:35 +01:00
parent 30cdc5a1f7
commit 1991ad3e66

View File

@ -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