Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbd89b6

Browse files
committed
PyObject_Dump() -> _PyObject_Dump()
PyGC_Dump() -> _PyGC_Dump()
1 parent 430d773 commit bbd89b6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Misc/gdbinit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# number of reference counts it current has and the hex address the
1717
# object is allocated at. The argument must be a PyObject*
1818
define pyo
19-
print PyObject_Dump($arg0)
19+
print _PyObject_Dump($arg0)
2020
end
2121

2222
# Prints a representation of the object to stderr, along with the
2323
# number of reference counts it current has and the hex address the
2424
# object is allocated at. The argument must be a PyGC_Head*
2525
define pyg
26-
print PyGC_Dump($arg0)
26+
print _PyGC_Dump($arg0)
2727
end

Objects/object.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,17 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
221221
}
222222

223223
/* For debugging convenience. See Misc/gdbinit for some useful gdb hooks */
224-
void PyObject_Dump(PyObject* op)
224+
void _PyObject_Dump(PyObject* op)
225225
{
226226
(void)PyObject_Print(op, stderr, 0);
227227
fprintf(stderr, "\nrefcounts: %d\n", op->ob_refcnt);
228228
fprintf(stderr, "address : %p\n", op);
229229
}
230230

231231
#ifdef WITH_CYCLE_GC
232-
void PyGC_Dump(PyGC_Head* op)
232+
void _PyGC_Dump(PyGC_Head* op)
233233
{
234-
PyObject_Dump(PyObject_FROM_GC(op));
234+
_PyObject_Dump(PyObject_FROM_GC(op));
235235
}
236236
#endif /* WITH_CYCLE_GC */
237237

0 commit comments

Comments
 (0)