From 46b62fb1946ea80dcb668d019ee0d4471c6c2f21 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 15 Jan 2017 16:10:51 -0500 Subject: Created a new debugger command 'tracesym' 'tracesym' is intended to be a shorthand of 'tracelog', whereby the user doesn't have to specify a format string; the default format string is used --- src/emu/debug/debugcpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/debug/debugcpu.cpp') diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 98fa6c9f038..a365523272b 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()); } } -- cgit v1.2.3