diff options
author | Mai M <mathew1800@gmail.com> | 2022-06-01 06:19:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 06:19:49 +0200 |
commit | de2f2e5140eb85311e0fd844c580d6726adf7e03 (patch) | |
tree | 10f0e96a0689b2edb823f5833ff388ac9c645229 /src/core/hle/kernel | |
parent | Merge pull request #8401 from zhaobot/tx-update-20220601034505 (diff) | |
parent | core/debugger: Implement new GDB stub debugger (diff) | |
download | yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.gz yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.bz2 yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.lz yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.xz yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.zst yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_process.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 490e31fc7..dcfeacccd 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -64,6 +64,10 @@ void SetupMainThread(Core::System& system, KProcess& owner_process, u32 priority { KScopedSchedulerLock lock{kernel}; thread->SetState(ThreadState::Runnable); + + if (system.DebuggerEnabled()) { + thread->RequestSuspend(SuspendType::Debug); + } } } } // Anonymous namespace |