diff options
author | Barry Warsaw <barry@python.org> | 2001-01-24 04:18:13 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-01-24 04:18:13 (GMT) |
commit | bbd89b66b1b3c44836f560b60c7a176a6172f148 (patch) | |
tree | 2f398ad0b4a836ba8c7de071de04ce9e597f8d26 | |
parent | 430d773f555d43c5bff73180b8b3746b480a0a8a (diff) | |
download | cpython-bbd89b66b1b3c44836f560b60c7a176a6172f148.zip cpython-bbd89b66b1b3c44836f560b60c7a176a6172f148.tar.gz cpython-bbd89b66b1b3c44836f560b60c7a176a6172f148.tar.bz2 |
PyObject_Dump() -> _PyObject_Dump()
PyGC_Dump() -> _PyGC_Dump()
-rw-r--r-- | Misc/gdbinit | 4 | ||||
-rw-r--r-- | Objects/object.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Misc/gdbinit b/Misc/gdbinit index a164f42..ae333b2 100644 --- a/Misc/gdbinit +++ b/Misc/gdbinit @@ -16,12 +16,12 @@ # 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 diff --git a/Objects/object.c b/Objects/object.c index b613dba..6dbd14c 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -221,7 +221,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags) } /* 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); @@ -229,9 +229,9 @@ void PyObject_Dump(PyObject* op) } #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 */ |