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)
| 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 | """ |
nothing calls this directly
no test coverage detected