MCPcopy Create free account
hub / github.com/Vector35/debugger / SetActiveThread

Method SetActiveThread

core/debuggercontroller.cpp:780–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778
779
780void 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
793bool DebuggerController::SuspendThread(std::uint32_t tid)

Callers

nothing calls this directly

Calls 3

UpdateMethod · 0.80
GetThreadsMethod · 0.45
GetRegistersMethod · 0.45

Tested by

no test coverage detected