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

Method GetFramesOfThread

api/debuggercontroller.cpp:191–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190
191std::vector<DebugFrame> DebuggerController::GetFramesOfThread(uint32_t tid)
192{
193 size_t count;
194 BNDebugFrame* frames = BNDebuggerGetFramesOfThread(m_object, tid, &count);
195
196 std::vector<DebugFrame> result;
197 result.reserve(count);
198
199 for (size_t i = 0; i < count; i++)
200 {
201 DebugFrame frame;
202 frame.m_index = frames[i].m_index;
203 frame.m_pc = frames[i].m_pc;
204 frame.m_sp = frames[i].m_sp;
205 frame.m_fp = frames[i].m_fp;
206 frame.m_functionName = frames[i].m_functionName;
207 frame.m_functionStart = frames[i].m_functionStart;
208 frame.m_module = frames[i].m_module;
209 result.push_back(frame);
210 }
211 BNDebuggerFreeFrames(frames, count);
212
213 return result;
214}
215
216
217std::vector<DebugModule> DebuggerController::GetModules()

Callers

nothing calls this directly

Calls 2

BNDebuggerFreeFramesFunction · 0.85

Tested by

no test coverage detected