MCPcopy Index your code
hub / github.com/python/cpython / get_thread_local_frame

Method get_thread_local_frame

Tools/gdb/libpython.py:1088–1095  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1086
1087 @staticmethod
1088 def get_thread_local_frame():
1089 thread_state = PyFramePtr.get_thread_state()
1090 if thread_state is None:
1091 return None
1092 current_frame = thread_state['current_frame']
1093 if int(current_frame) == 0:
1094 return None
1095 return PyFramePtr(current_frame)
1096
1097 def is_optimized_out(self):
1098 return self._gdbval.is_optimized_out

Callers 1

print_traceback_helperFunction · 0.80

Calls 2

PyFramePtrClass · 0.85
get_thread_stateMethod · 0.80

Tested by

no test coverage detected