diff options
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
| -rw-r--r-- | src/emu/debug/debugcpu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 4e59ed8a652..7e352e7dbe8 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -1666,9 +1666,10 @@ device_debug::device_debug(device_t &device) // add all registers into it std::string tempstr; - for (const device_state_entry *entry = m_state->state_first(); entry != nullptr; entry = entry->next()) { - strmakelower(tempstr.assign(entry->symbol())); - m_symtable.add(tempstr.c_str(), (void *)(FPTR)entry->index(), get_state, set_state); + for (const device_state_entry &entry : m_state->state_entries()) + { + strmakelower(tempstr.assign(entry.symbol())); + m_symtable.add(tempstr.c_str(), (void *)(FPTR)entry.index(), get_state, set_state); } } |
