summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-21 01:10:24 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-21 01:10:27 -0400
commit49f354d5449432d449dd22f8455776a8ca8f4842 (patch)
tree0a0ac56f0dd4ec5a75d4fba5f6393290a2459717 /src/emu/debug/debugcpu.cpp
parent3ac6d70be07a146be55661e93eb9eb239b9a8c2e (diff)
Kludge some absolute tag lookups in the core that can't really be helped (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 047317cd14f..bbf1170b762 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -296,7 +296,7 @@ bool debugger_cpu::comment_load(bool is_inline)
for (util::xml::data_node const *cpunode = systemnode->get_child("cpu"); cpunode; cpunode = cpunode->get_next_sibling("cpu"))
{
const char *cputag_name = cpunode->get_attribute_string("tag", "");
- device_t *device = m_machine.device(cputag_name);
+ device_t *device = m_machine.root_device().subdevice(cputag_name);
if (device != nullptr)
{
if(is_inline == false)
@@ -692,7 +692,7 @@ device_t* debugger_cpu::expression_get_device(const char *tag)
// convert to lowercase then lookup the name (tags are enforced to be all lower case)
std::string fullname(tag);
strmakelower(fullname);
- return m_machine.device(fullname.c_str());
+ return m_machine.root_device().subdevice(fullname.c_str());
}