diff options
author | Liam <byteslice@airmail.cc> | 2022-06-15 03:03:14 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-15 03:06:23 +0200 |
commit | a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7 (patch) | |
tree | 3fe20253230a0f15628f502b40f547f60a64371d | |
parent | Merge pull request #8461 from Morph1984/msvc-narrow-conv (diff) | |
download | yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.tar yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.tar.gz yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.tar.bz2 yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.tar.lz yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.tar.xz yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.tar.zst yuzu-a7358ff1d4d4c6844b94d1cbe2b46ddf4d262cf7.zip |
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 584fa5b1c..d09de93a0 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -15,6 +15,7 @@ #include "common/scope_exit.h" #include "core/core.h" #include "core/core_timing.h" +#include "core/debugger/debugger.h" #include "core/hle/kernel/k_client_port.h" #include "core/hle/kernel/k_client_session.h" #include "core/hle/kernel/k_code_memory.h" @@ -627,6 +628,12 @@ static void Break(Core::System& system, u32 reason, u64 info1, u64 info2) { const auto thread_processor_id = current_thread->GetActiveCore(); system.ArmInterface(static_cast<std::size_t>(thread_processor_id)).LogBacktrace(); } + + if (system.DebuggerEnabled()) { + auto* thread = system.Kernel().GetCurrentEmuThread(); + system.GetDebugger().NotifyThreadStopped(thread); + thread->RequestSuspend(Kernel::SuspendType::Debug); + } } static void Break32(Core::System& system, u32 reason, u32 info1, u32 info2) { |