MCPcopy Create free account
hub / github.com/apache/arrow / is_gdb_available

Function is_gdb_available

python/pyarrow/tests/test_gdb.py:53–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52@lru_cache()
53def is_gdb_available():
54 try:
55 # Try to use the same arguments as in GdbSession so that the
56 # same error return gets propagated.
57 proc = subprocess.run(gdb_command + ["--version"],
58 env=environment_for_gdb(), bufsize=0,
59 stdin=subprocess.PIPE,
60 stdout=subprocess.PIPE,
61 stderr=subprocess.STDOUT)
62 except FileNotFoundError:
63 return False
64 return proc.returncode == 0
65
66
67@lru_cache()

Callers 1

skip_if_gdb_unavailableFunction · 0.85

Calls 2

environment_for_gdbFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected