From ddbaad1eb3336a465821b311ae8029a58a8f0da7 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 21 Aug 2022 22:32:13 +1000 Subject: [PATCH] debugger/debuggdbstub.cpp: Fixed failure to find CPU. --- src/osd/modules/debugger/debuggdbstub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/modules/debugger/debuggdbstub.cpp b/src/osd/modules/debugger/debuggdbstub.cpp index eaeb1df4cca..2aecd4bc6a6 100644 --- a/src/osd/modules/debugger/debuggdbstub.cpp +++ b/src/osd/modules/debugger/debuggdbstub.cpp @@ -644,7 +644,7 @@ void debug_gdbstub::wait_for_debugger(device_t &device, bool firststop) if ( firststop && !m_initialized ) { // find the "main" CPU, which is the first CPU (gdbstub doesn't have any notion of switching CPUs) - m_maincpu = device_type_enumerator(m_machine->root_device()).first(); + m_maincpu = device_interface_enumerator(m_machine->root_device()).first(); if (!m_maincpu) fatalerror("gdbstub: cannot find any CPUs\n");