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

Function gdb_has_frame_select

Lib/test/test_gdb/test_misc.py:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def gdb_has_frame_select():
13 # Does this build of gdb have gdb.Frame.select ?
14 stdout, stderr = run_gdb("--eval-command=python print(dir(gdb.Frame))")
15 m = re.match(r'.*\[(.*)\].*', stdout)
16 if not m:
17 raise unittest.SkipTest(
18 f"Unable to parse output from gdb.Frame.select test\n"
19 f"stdout={stdout!r}\n"
20 f"stderr={stderr!r}\n")
21 gdb_frame_dir = m.group(1).split(', ')
22 return "'select'" in gdb_frame_dir
23
24HAS_PYUP_PYDOWN = gdb_has_frame_select()
25

Callers 1

test_misc.pyFile · 0.85

Calls 4

run_gdbFunction · 0.85
matchMethod · 0.45
splitMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…