summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author dave-br <dave-br@users.noreply.github.com>2025-07-26 05:10:14 -0700
committer GitHub <noreply@github.com>2025-07-26 08:10:14 -0400
commit2cfe0cb00938665ddb32ecf677ccb3527d3850cd (patch)
treefcee83df57cd94d5f8b6ee4f49e09a71f01cab72 /src/emu/debug/debugcmd.cpp
parenta14ed60efe17e46c3043aec312668c6d03f9be20 (diff)
Fix symlist default CPU (#13886)
When executed with no parameters, symlist was displaying the symbol tables for the first CPU and the debugger built-in globals. Defaulting to the first CPU like that didn't make sense. It now displays the symbol tables for the VISIBLE cpu and the debugger built-in globals.
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 1977071cc86..9759d6487a1 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -3916,8 +3916,8 @@ void debugger_commands::execute_symlist(const std::vector<std::string_view> &par
device_t *cpu = nullptr;
symbol_table *symtable;
- // default to CPU "0" if none specified
- if (!m_console.validate_cpu_parameter(params.empty() ? "0" : params[0], cpu))
+ // default to visible CPU if none specified
+ if (!m_console.validate_cpu_parameter(params.empty() ? std::string_view() : params[0], cpu))
{
if (!params.empty())
return; // explicitly specified CPU is invalid