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

Method read_stack_data

pydevd_attach_to_process/winappdbg/thread.py:1325–1341  ·  view source on GitHub ↗

Reads 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. @raise WindowsEr

(self, size=128, offset=0)

Source from the content-addressed store, hash-verified

1323 return self.get_process().peek(sp, size)
1324
1325 def read_stack_data(self, size=128, offset=0):
1326 """
1327 Reads the contents of the top of the stack.
1328
1329 @type size: int
1330 @param size: Number of bytes to read.
1331
1332 @type offset: int
1333 @param offset: Offset from the stack pointer to begin reading.
1334
1335 @rtype: str
1336 @return: Stack data.
1337
1338 @raise WindowsError: Could not read the requested data.
1339 """
1340 aProcess = self.get_process()
1341 return aProcess.read(self.get_sp() + offset, size)
1342
1343 def peek_stack_data(self, size=128, offset=0):
1344 """

Callers 2

read_stack_dwordsMethod · 0.95
read_stack_qwordsMethod · 0.95

Calls 3

get_processMethod · 0.95
get_spMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected