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

Method frames_of_thread

api/python/debuggercontroller.py:1316–1332  ·  view source on GitHub ↗

Get the stack frames of the thread specified by ``tid`` :param tid: thread id :return: list of stack frames

(self, tid: int)

Source from the content-addressed store, hash-verified

1314 DebuggerEventWrapper.remove(self, index)
1315
1316 def frames_of_thread(self, tid: int) -> List[DebugFrame]:
1317 """
1318 Get the stack frames of the thread specified by ``tid``
1319
1320 :param tid: thread id
1321 :return: list of stack frames
1322 """
1323 count = ctypes.c_ulonglong()
1324 frames = dbgcore.BNDebuggerGetFramesOfThread(self.handle, tid, count)
1325 result = []
1326 for i in range(0, count.value):
1327 bp = DebugFrame(frames[i].m_index, frames[i].m_pc, frames[i].m_sp, frames[i].m_fp, frames[i].m_functionName,
1328 frames[i].m_functionStart, frames[i].m_module)
1329 result.append(bp)
1330
1331 dbgcore.BNDebuggerFreeFrames(frames, count.value)
1332 return result
1333
1334 @property
1335 def stop_reason(self) -> DebugStopReason:

Callers

nothing calls this directly

Calls 1

DebugFrameClass · 0.70

Tested by

no test coverage detected