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
| 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 |
| 737 | DebugThread 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 | |
| 745 | std::uint32_t DbgEngAdapter::GetActiveThreadId() const |
| 746 | { |
nothing calls this directly
no test coverage detected