summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-10-22 23:00:45 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-10-26 16:53:52 -0500
commit7608dbbfbd087a31faa5337b96dffc4d74db6846 (patch)
treeeb70dac5bb60cb51819799a02f5eabb66d287cff /Source/Core
parentc22a483431bcc40a18250985426e0ae0c27bfa5a (diff)
Core: Remove GDBStub::Deinit call from EmuThread. The CpuThread function is already doing this.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Core.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp
index 3292abbff9..24af05348a 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<std::string>& 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<BootParameters> 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