| 778 | |
| 779 | |
| 780 | void DebuggerController::SetActiveThread(const DebugThread& thread) |
| 781 | { |
| 782 | // TODO: check if the new thread is the same as the old one. If so, do nothing and return |
| 783 | m_state->GetThreads()->SetActiveThread(thread); |
| 784 | // We only need to update the register values after we switch to a different thread |
| 785 | m_state->GetRegisters()->Update(); |
| 786 | // Post an event so the stack view can get updated |
| 787 | DebuggerEvent event; |
| 788 | event.type = ActiveThreadChangedEvent; |
| 789 | PostDebuggerEvent(event); |
| 790 | } |
| 791 | |
| 792 | |
| 793 | bool DebuggerController::SuspendThread(std::uint32_t tid) |
nothing calls this directly
no test coverage detected