From 1df6e1e0d129de9f1a6d4b4fa9d186df22ae7c14 Mon Sep 17 00:00:00 2001 From: dave-br Date: Mon, 30 Jun 2025 10:49:28 -0700 Subject: [PATCH] Fix symlist default CPU 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(-) diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index cded76abf7aa0..86cf3e14acbc6 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -3912,8 +3912,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