# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyObject*
define pyo
-print PyObject_Dump($arg0)
+print _PyObject_Dump($arg0)
end
# Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyGC_Head*
define pyg
-print PyGC_Dump($arg0)
+print _PyGC_Dump($arg0)
end
}
/* For debugging convenience. See Misc/gdbinit for some useful gdb hooks */
-void PyObject_Dump(PyObject* op)
+void _PyObject_Dump(PyObject* op)
{
(void)PyObject_Print(op, stderr, 0);
fprintf(stderr, "\nrefcounts: %d\n", op->ob_refcnt);
}
#ifdef WITH_CYCLE_GC
-void PyGC_Dump(PyGC_Head* op)
+void _PyGC_Dump(PyGC_Head* op)
{
- PyObject_Dump(PyObject_FROM_GC(op));
+ _PyObject_Dump(PyObject_FROM_GC(op));
}
#endif /* WITH_CYCLE_GC */