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

Method select

Tools/gdb/libpython.py:1735–1745  ·  view source on GitHub ↗

If supported, select this frame and return True; return False if unsupported Not all builds have a gdb.Frame.select method; seems to be present on Fedora 12 onwards, but absent on Ubuntu buildbot

(self)

Source from the content-addressed store, hash-verified

1733 return None
1734
1735 def select(self):
1736 '''If supported, select this frame and return True; return False if unsupported
1737
1738 Not all builds have a gdb.Frame.select method; seems to be present on Fedora 12
1739 onwards, but absent on Ubuntu buildbot'''
1740 if not hasattr(self._gdbframe, 'select'):
1741 print ('Unable to select frame: '
1742 'this build of gdb does not expose a gdb.Frame.select method')
1743 return False
1744 self._gdbframe.select()
1745 return True
1746
1747 def get_index(self):
1748 '''Calculate index of frame, starting at 0 for the newest frame within

Callers 1

move_in_stackFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected