MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / read_stack_frame

Method read_stack_frame

pydevd_attach_to_process/winappdbg/thread.py:1459–1476  ·  view source on GitHub ↗

Reads the stack frame of the thread. @type structure: ctypes.Structure @param structure: Structure of the stack frame. @type offset: int @param offset: Offset from the frame pointer to begin reading. The frame pointer is the same returned by t

(self, structure, offset=0)

Source from the content-addressed store, hash-verified

1457 return tuple([stackData.__getattribute__(name) for (name, type) in stackData._fields_])
1458
1459 def read_stack_frame(self, structure, offset=0):
1460 """
1461 Reads the stack frame of the thread.
1462
1463 @type structure: ctypes.Structure
1464 @param structure: Structure of the stack frame.
1465
1466 @type offset: int
1467 @param offset: Offset from the frame pointer to begin reading.
1468 The frame pointer is the same returned by the L{get_fp} method.
1469
1470 @rtype: tuple
1471 @return: Tuple of elements read from the stack frame. The type of each
1472 element matches the types in the stack frame structure.
1473 """
1474 aProcess = self.get_process()
1475 stackData = aProcess.read_structure(self.get_fp() + offset, structure)
1476 return tuple([stackData.__getattribute__(name) for (name, type) in stackData._fields_])
1477
1478 def read_code_bytes(self, size=128, offset=0):
1479 """

Callers

nothing calls this directly

Calls 4

get_processMethod · 0.95
get_fpMethod · 0.95
read_structureMethod · 0.80
__getattribute__Method · 0.45

Tested by

no test coverage detected