From 7608dbbfbd087a31faa5337b96dffc4d74db6846 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 22 Oct 2025 23:00:45 -0500 Subject: [PATCH] Core: Remove GDBStub::Deinit call from EmuThread. The CpuThread function is already doing this. --- Source/Core/Core/Core.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 3292abbff9c..24af05348a1 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -418,9 +418,10 @@ static void CpuThread(Core::System& system, const std::optional& sa if (GDBStub::IsActive()) { + INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "Stopping GDB ...")); GDBStub::Deinit(); + INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "GDB stopped.")); INFO_LOG_FMT(GDB_STUB, "Killed by CPU shutdown"); - return; } } @@ -660,10 +661,6 @@ static void EmuThread(Core::System& system, std::unique_ptr boot // Become the CPU thread cpuThreadFunc(system, savestate_path, delete_savestate); } - - INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "Stopping GDB ...")); - GDBStub::Deinit(); - INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "GDB stopped.")); } // Set or get the running state