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

Method is_evalframe

Tools/gdb/libpython.py:1775–1789  ·  view source on GitHub ↗

Is this a _PyEval_EvalFrameDefault frame?

(self)

Source from the content-addressed store, hash-verified

1773 return False
1774
1775 def is_evalframe(self):
1776 '''Is this a _PyEval_EvalFrameDefault frame?'''
1777 if self._gdbframe.name() == EVALFRAME:
1778 '''
1779 I believe we also need to filter on the inline
1780 struct frame_id.inline_depth, only regarding frames with
1781 an inline depth of 0 as actually being this function
1782
1783 So we reject those with type gdb.INLINE_FRAME
1784 '''
1785 if self._gdbframe.type() == gdb.NORMAL_FRAME:
1786 # We have a _PyEval_EvalFrameDefault frame:
1787 return True
1788
1789 return False
1790
1791 def is_other_python_frame(self):
1792 '''Is this frame worth displaying in python backtraces?

Callers 4

is_python_frameMethod · 0.95
print_summaryMethod · 0.95
print_traceback_helperFunction · 0.80

Calls 2

nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected