From 2cfe0cb00938665ddb32ecf677ccb3527d3850cd Mon Sep 17 00:00:00 2001 From: dave-br Date: Sat, 26 Jul 2025 05:10:14 -0700 Subject: 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. --- src/emu/debug/debugcmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/debug/debugcmd.cpp') 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 &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 -- cgit v1.2.3