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

Method GetActiveThread

core/adapters/dbgengadapter.cpp:737–743  ·  view source on GitHub ↗

Note, on Windows, we use engine thread ID, but on Linux/macOS, we use system thread ID. System thread ID is also available on Windows, We should later add a new field to the DebugThread struct

Source from the content-addressed store, hash-verified

735// Note, on Windows, we use engine thread ID, but on Linux/macOS, we use system thread ID.
736// System thread ID is also available on Windows, We should later add a new field to the DebugThread struct
737DebugThread DbgEngAdapter::GetActiveThread() const
738{
739 // Temporary hacky to get the code compile without changing everything
740 if (!m_debugRegisters)
741 return DebugThread {};
742 return DebugThread(this->GetActiveThreadId(), ((DbgEngAdapter*)this)->GetInstructionOffset());
743}
744
745std::uint32_t DbgEngAdapter::GetActiveThreadId() const
746{

Callers

nothing calls this directly

Calls 3

GetActiveThreadIdMethod · 0.95
DebugThreadClass · 0.50
GetInstructionOffsetMethod · 0.45

Tested by

no test coverage detected