Skip to content

Commit 2cfe0cb

Browse files
authored
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.
1 parent a14ed60 commit 2cfe0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/emu/debug/debugcmd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3916,8 +3916,8 @@ void debugger_commands::execute_symlist(const std::vector<std::string_view> &par
39163916
device_t *cpu = nullptr;
39173917
symbol_table *symtable;
39183918

3919-
// default to CPU "0" if none specified
3920-
if (!m_console.validate_cpu_parameter(params.empty() ? "0" : params[0], cpu))
3919+
// default to visible CPU if none specified
3920+
if (!m_console.validate_cpu_parameter(params.empty() ? std::string_view() : params[0], cpu))
39213921
{
39223922
if (!params.empty())
39233923
return; // explicitly specified CPU is invalid

0 commit comments

Comments
 (0)