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

Method get_stack_range

pydevd_attach_to_process/winappdbg/thread.py:1065–1077  ·  view source on GitHub ↗

@rtype: tuple( int, int ) @return: Stack beginning and end pointers, in memory addresses order. That is, the first pointer is the stack top, and the second pointer is the stack bottom, since the stack grows towards lower memory addresses.

(self)

Source from the content-addressed store, hash-verified

1063 return win32.GetThreadWaitChain(hWct, ThreadId=self.get_tid())
1064
1065 def get_stack_range(self):
1066 """
1067 @rtype: tuple( int, int )
1068 @return: Stack beginning and end pointers, in memory addresses order.
1069 That is, the first pointer is the stack top, and the second pointer
1070 is the stack bottom, since the stack grows towards lower memory
1071 addresses.
1072 @raise WindowsError: Raises an exception on error.
1073 """
1074 # TODO use teb.DeallocationStack too (max. possible stack size)
1075 teb = self.get_teb()
1076 tib = teb.NtTib
1077 return (tib.StackLimit, tib.StackBase) # top, bottom
1078
1079 def __get_stack_trace(self, depth=16, bUseLabels=True, bMakePretty=True):
1080 """

Callers 3

get_stack_frame_rangeMethod · 0.95
fetch_extra_dataMethod · 0.80

Calls 1

get_tebMethod · 0.95

Tested by

no test coverage detected