diff options
author | Liam <byteslice@airmail.cc> | 2023-02-18 16:26:48 -0500 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-02-21 12:19:25 -0500 |
commit | a9369726147c7499e0016e183d5d56a7b44efe4b (patch) | |
tree | c1d1b4a9fdafd92863c0922b05d72c14de83ffa7 /src/core/debugger/debugger.cpp | |
parent | 23151ff498993badb341ddf6de5ed38a5833e41c (diff) |
service: refactor server architecture
Converts services to have their own processes
Diffstat (limited to 'src/core/debugger/debugger.cpp')
-rw-r--r-- | src/core/debugger/debugger.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/debugger/debugger.cpp b/src/core/debugger/debugger.cpp index a9675df76d..a1589fecb5 100644 --- a/src/core/debugger/debugger.cpp +++ b/src/core/debugger/debugger.cpp @@ -16,6 +16,7 @@ #include "core/debugger/debugger_interface.h" #include "core/debugger/gdbstub.h" #include "core/hle/kernel/global_scheduler_context.h" +#include "core/hle/kernel/k_process.h" #include "core/hle/kernel/k_scheduler.h" template <typename Readable, typename Buffer, typename Callback> @@ -284,12 +285,12 @@ private: void UpdateActiveThread() { const auto& threads{ThreadList()}; if (std::find(threads.begin(), threads.end(), state->active_thread) == threads.end()) { - state->active_thread = threads[0]; + state->active_thread = threads.front(); } } - const std::vector<Kernel::KThread*>& ThreadList() { - return system.GlobalSchedulerContext().GetThreadList(); + const std::list<Kernel::KThread*>& ThreadList() { + return system.ApplicationProcess()->GetThreadList(); } private: |