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

Method to_string

Tools/gdb/libpython.py:1657–1665  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1655 self.gdbval = gdbval
1656
1657 def to_string (self):
1658 pyop = PyObjectPtr.from_pyobject_ptr(self.gdbval)
1659 if True:
1660 return pyop.get_truncated_repr(MAX_OUTPUT_LEN)
1661 else:
1662 # Generate full proxy value then stringify it.
1663 # Doing so could be expensive
1664 proxyval = pyop.proxyval(set())
1665 return stringify(proxyval)
1666
1667def pretty_printer_lookup(gdbval):
1668 type = gdbval.type.strip_typedefs().unqualified()

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
stringifyFunction · 0.85
from_pyobject_ptrMethod · 0.80
get_truncated_reprMethod · 0.45
proxyvalMethod · 0.45

Tested by

no test coverage detected