summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2017-01-17 12:21:57 -0500
committer GitHub <noreply@github.com>2017-01-17 12:21:57 -0500
commit9d6a96e02fa837f2c699ff950fe6f26d2f7f467e (patch)
treea37cff7082a2784b46037c2b60fe3f429702e341 /src/emu/debug/debugcpu.cpp
parentec4b0ff9f70dfb4b2d453d671ef7fb2acff642dd (diff)
parentd8d82358c351e7bf425717e1a22ec1faa2b02feb (diff)
Merge pull request #1987 from npwoods/tracesym_debugger_command
Created a new debugger command 'tracesym'
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 85c0b32dd73..178f4cf7f32 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -1668,10 +1668,10 @@ device_debug::device_debug(device_t &device)
// add all registers into it
std::string tempstr;
- for (auto &entry : m_state->state_entries())
+ for (const auto &entry : m_state->state_entries())
{
strmakelower(tempstr.assign(entry->symbol()));
- m_symtable.add(tempstr.c_str(), (void *)(uintptr_t)entry->index(), get_state, set_state);
+ m_symtable.add(tempstr.c_str(), (void *)(uintptr_t)entry->index(), get_state, set_state, entry->format_string());
}
}