aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-05-30 19:35:01 -0400
committerLiam <byteslice@airmail.cc>2022-06-01 00:01:25 -0400
commit2ee161a0bf97c22112e228f0648c96751b829fce (patch)
treee2588a859d364a32be0cd9e0401a345c6492d1a7 /src/core/hle/kernel
parent7f1bf5c7a7a73273a73657f0af10697e9e0a728d (diff)
core/debugger: Implement new GDB stub debugger
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_process.cpp4
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 490e31fc71..dcfeacccda 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