diff options
Diffstat (limited to 'src/core/debugger/gdbstub.cpp')
| -rw-r--r-- | src/core/debugger/gdbstub.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/debugger/gdbstub.cpp b/src/core/debugger/gdbstub.cpp index 945ec528e..18afe97e1 100644 --- a/src/core/debugger/gdbstub.cpp +++ b/src/core/debugger/gdbstub.cpp | |||
| @@ -573,7 +573,7 @@ void GDBStub::HandleQuery(std::string_view command) { | |||
| 573 | SendReply(PaginateBuffer(buffer, command.substr(21))); | 573 | SendReply(PaginateBuffer(buffer, command.substr(21))); |
| 574 | } else if (command.starts_with("fThreadInfo")) { | 574 | } else if (command.starts_with("fThreadInfo")) { |
| 575 | // beginning of list | 575 | // beginning of list |
| 576 | const auto& threads = system.GlobalSchedulerContext().GetThreadList(); | 576 | const auto& threads = system.ApplicationProcess()->GetThreadList(); |
| 577 | std::vector<std::string> thread_ids; | 577 | std::vector<std::string> thread_ids; |
| 578 | for (const auto& thread : threads) { | 578 | for (const auto& thread : threads) { |
| 579 | thread_ids.push_back(fmt::format("{:x}", thread->GetThreadID())); | 579 | thread_ids.push_back(fmt::format("{:x}", thread->GetThreadID())); |
| @@ -587,7 +587,7 @@ void GDBStub::HandleQuery(std::string_view command) { | |||
| 587 | buffer += R"(<?xml version="1.0"?>)"; | 587 | buffer += R"(<?xml version="1.0"?>)"; |
| 588 | buffer += "<threads>"; | 588 | buffer += "<threads>"; |
| 589 | 589 | ||
| 590 | const auto& threads = system.GlobalSchedulerContext().GetThreadList(); | 590 | const auto& threads = system.ApplicationProcess()->GetThreadList(); |
| 591 | for (const auto* thread : threads) { | 591 | for (const auto* thread : threads) { |
| 592 | auto thread_name{GetThreadName(system, thread)}; | 592 | auto thread_name{GetThreadName(system, thread)}; |
| 593 | if (!thread_name) { | 593 | if (!thread_name) { |
| @@ -817,7 +817,7 @@ void GDBStub::HandleRcmd(const std::vector<u8>& command) { | |||
| 817 | } | 817 | } |
| 818 | 818 | ||
| 819 | Kernel::KThread* GDBStub::GetThreadByID(u64 thread_id) { | 819 | Kernel::KThread* GDBStub::GetThreadByID(u64 thread_id) { |
| 820 | const auto& threads{system.GlobalSchedulerContext().GetThreadList()}; | 820 | const auto& threads{system.ApplicationProcess()->GetThreadList()}; |
| 821 | for (auto* thread : threads) { | 821 | for (auto* thread : threads) { |
| 822 | if (thread->GetThreadID() == thread_id) { | 822 | if (thread->GetThreadID() == thread_id) { |
| 823 | return thread; | 823 | return thread; |