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

Method peek_stack_data

pydevd_attach_to_process/winappdbg/thread.py:1343–1358  ·  view source on GitHub ↗

Tries to read the contents of the top of the stack. @type size: int @param size: Number of bytes to read. @type offset: int @param offset: Offset from the stack pointer to begin reading. @rtype: str @return: Stack data. Retur

(self, size=128, offset=0)

Source from the content-addressed store, hash-verified

1341 return aProcess.read(self.get_sp() + offset, size)
1342
1343 def peek_stack_data(self, size=128, offset=0):
1344 """
1345 Tries to read the contents of the top of the stack.
1346
1347 @type size: int
1348 @param size: Number of bytes to read.
1349
1350 @type offset: int
1351 @param offset: Offset from the stack pointer to begin reading.
1352
1353 @rtype: str
1354 @return: Stack data.
1355 Returned data may be less than the requested size.
1356 """
1357 aProcess = self.get_process()
1358 return aProcess.peek(self.get_sp() + offset, size)
1359
1360 def read_stack_dwords(self, count, offset=0):
1361 """

Callers 3

peek_stack_dwordsMethod · 0.95
peek_stack_qwordsMethod · 0.95
fetch_extra_dataMethod · 0.80

Calls 3

get_processMethod · 0.95
get_spMethod · 0.95
peekMethod · 0.80

Tested by

no test coverage detected