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

Method print_value

python/pyarrow/tests/test_gdb.py:139–147  ·  view source on GitHub ↗

Ask gdb to print the value of an expression and return the result.

(self, expr)

Source from the content-addressed store, hash-verified

137 return self.wait_until_ready()
138
139 def print_value(self, expr):
140 """
141 Ask gdb to print the value of an expression and return the result.
142 """
143 out = self.run_command(f"p {expr}")
144 out, n = re.subn(r"^\$\d+ = ", "", out)
145 assert n == 1, out
146 # gdb may add whitespace depending on result width, remove it
147 return out.strip()
148
149 def select_frame(self, func_name):
150 """

Callers 3

test_gdb_arrowFunction · 0.80
check_stack_reprFunction · 0.80
check_heap_reprFunction · 0.80

Calls 1

run_commandMethod · 0.95

Tested by

no test coverage detected