Core: Remove GDBStub::Deinit call from EmuThread. The CpuThread function is already doing this.
This commit is contained in:
1 parent
c22a483431
commit
7608dbbfbd
1 file changed
+2
-5
@@ -418,9 +418,10 @@ static void CpuThread(Core::System& system, const std::optional<std::string>& sa
|
|||||||
|
|
||||||
if (GDBStub::IsActive())
|
if (GDBStub::IsActive())
|
||||||
{
|
{
|
||||||
|
INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "Stopping GDB ..."));
|
||||||
GDBStub::Deinit();
|
GDBStub::Deinit();
|
||||||
|
INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "GDB stopped."));
|
||||||
INFO_LOG_FMT(GDB_STUB, "Killed by CPU shutdown");
|
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
|
// Become the CPU thread
|
||||||
cpuThreadFunc(system, savestate_path, delete_savestate);
|
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
|
// Set or get the running state
|
||||||
|
|||||||
Reference in new issue
Block a user