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

Method get_selected_bytecode_frame

Tools/gdb/libpython.py:1900–1911  ·  view source on GitHub ↗

Try to obtain the Frame for the python bytecode interpreter in the selected GDB frame, or None

(cls)

Source from the content-addressed store, hash-verified

1898
1899 @classmethod
1900 def get_selected_bytecode_frame(cls):
1901 '''Try to obtain the Frame for the python bytecode interpreter in the
1902 selected GDB frame, or None'''
1903 frame = cls.get_selected_frame()
1904
1905 while frame:
1906 if frame.is_evalframe():
1907 return frame
1908 frame = frame.older()
1909
1910 # Not found:
1911 return None
1912
1913 def print_summary(self):
1914 if self.is_evalframe():

Callers 1

invokeMethod · 0.80

Calls 3

get_selected_frameMethod · 0.80
is_evalframeMethod · 0.80
olderMethod · 0.80

Tested by

no test coverage detected