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

Method print_summary

Tools/gdb/libpython.py:1913–1925  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1911 return None
1912
1913 def print_summary(self):
1914 if self.is_evalframe():
1915 interp_frame = self.get_pyop()
1916 if interp_frame:
1917 interp_frame.print_traceback_until_shim(self.get_index())
1918 else:
1919 sys.stdout.write('#%i (unable to read python frame information)\n' % self.get_index())
1920 else:
1921 info = self.is_other_python_frame()
1922 if info:
1923 sys.stdout.write('#%i %s\n' % (self.get_index(), info))
1924 else:
1925 sys.stdout.write('#%i\n' % self.get_index())
1926
1927class PyList(gdb.Command):
1928 '''List the current Python source code, if any

Callers 1

move_in_stackFunction · 0.80

Calls 6

is_evalframeMethod · 0.95
get_pyopMethod · 0.95
get_indexMethod · 0.95
is_other_python_frameMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected