diff options
| author | Liam <byteslice@airmail.cc> | 2022-05-30 19:35:01 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-06-01 00:01:25 -0400 |
| commit | 2ee161a0bf97c22112e228f0648c96751b829fce (patch) | |
| tree | e2588a859d364a32be0cd9e0401a345c6492d1a7 /src/yuzu/bootmanager.cpp | |
| parent | 7f1bf5c7a7a73273a73657f0af10697e9e0a728d (diff) | |
core/debugger: Implement new GDB stub debugger
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 8f0a6bbb8b..aae2de2f83 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -50,6 +50,7 @@ void EmuThread::run() { auto& gpu = system.GPU(); auto stop_token = stop_source.get_token(); + bool debugger_should_start = system.DebuggerEnabled(); system.RegisterHostThread(); @@ -89,6 +90,12 @@ void EmuThread::run() { this->SetRunning(false); emit ErrorThrown(result, system.GetStatusDetails()); } + + if (debugger_should_start) { + system.InitializeDebugger(); + debugger_should_start = false; + } + running_wait.Wait(); result = system.Pause(); if (result != Core::SystemResultStatus::Success) { @@ -102,11 +109,9 @@ void EmuThread::run() { was_active = true; emit DebugModeEntered(); } - } else if (exec_step) { - UNIMPLEMENTED(); } else { std::unique_lock lock{running_mutex}; - running_cv.wait(lock, stop_token, [this] { return IsRunning() || exec_step; }); + running_cv.wait(lock, stop_token, [this] { return IsRunning(); }); } } |
