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

Method GetThreads

api/debuggercontroller.cpp:139–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139std::vector<DebugThread> DebuggerController::GetThreads()
140{
141 size_t count;
142 BNDebugThread* threads = BNDebuggerGetThreads(m_object, &count);
143
144 vector<DebugThread> result;
145 result.reserve(count);
146 for (size_t i = 0; i < count; i++)
147 {
148 DebugThread thread;
149 thread.m_rip = threads[i].m_rip;
150 thread.m_tid = threads[i].m_tid;
151 thread.m_isFrozen = threads[i].m_isFrozen;
152 result.push_back(thread);
153 }
154 BNDebuggerFreeThreads(threads, count);
155
156 return result;
157}
158
159
160DebugThread DebuggerController::GetActiveThread()

Callers 2

updateRowsMethod · 0.45
makeItSoloThreadMethod · 0.45

Calls 2

BNDebuggerGetThreadsFunction · 0.85
BNDebuggerFreeThreadsFunction · 0.85

Tested by

no test coverage detected