diff options
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 a9675df76..a1589fecb 100644 --- a/src/core/debugger/debugger.cpp +++ b/src/core/debugger/debugger.cpp | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include "core/debugger/debugger_interface.h" | 16 | #include "core/debugger/debugger_interface.h" |
| 17 | #include "core/debugger/gdbstub.h" | 17 | #include "core/debugger/gdbstub.h" |
| 18 | #include "core/hle/kernel/global_scheduler_context.h" | 18 | #include "core/hle/kernel/global_scheduler_context.h" |
| 19 | #include "core/hle/kernel/k_process.h" | ||
| 19 | #include "core/hle/kernel/k_scheduler.h" | 20 | #include "core/hle/kernel/k_scheduler.h" |
| 20 | 21 | ||
| 21 | template <typename Readable, typename Buffer, typename Callback> | 22 | template <typename Readable, typename Buffer, typename Callback> |
| @@ -284,12 +285,12 @@ private: | |||
| 284 | void UpdateActiveThread() { | 285 | void UpdateActiveThread() { |
| 285 | const auto& threads{ThreadList()}; | 286 | const auto& threads{ThreadList()}; |
| 286 | if (std::find(threads.begin(), threads.end(), state->active_thread) == threads.end()) { | 287 | if (std::find(threads.begin(), threads.end(), state->active_thread) == threads.end()) { |
| 287 | state->active_thread = threads[0]; | 288 | state->active_thread = threads.front(); |
| 288 | } | 289 | } |
| 289 | } | 290 | } |
| 290 | 291 | ||
| 291 | const std::vector<Kernel::KThread*>& ThreadList() { | 292 | const std::list<Kernel::KThread*>& ThreadList() { |
| 292 | return system.GlobalSchedulerContext().GetThreadList(); | 293 | return system.ApplicationProcess()->GetThreadList(); |
| 293 | } | 294 | } |
| 294 | 295 | ||
| 295 | private: | 296 | private: |