summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-10-17 18:59:56 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-10-17 18:59:56 (GMT)
commit5b5d8d58c76cac7c1e3bdc8004abad137ee8d3ce (patch)
tree668e26f50b61ed2d508c5c44bea741590d6ad1c9
parent03efcf2d994903e68791b25b4c40bdedffaf5a4c (diff)
downloadcpython-5b5d8d58c76cac7c1e3bdc8004abad137ee8d3ce.zip
cpython-5b5d8d58c76cac7c1e3bdc8004abad137ee8d3ce.tar.gz
cpython-5b5d8d58c76cac7c1e3bdc8004abad137ee8d3ce.tar.bz2
The py_decref macro was incorrect and unnecessary.
-rw-r--r--Misc/gdbinit10
1 files changed, 0 insertions, 10 deletions
diff --git a/Misc/gdbinit b/Misc/gdbinit
index f87881e..ba60a7a 100644
--- a/Misc/gdbinit
+++ b/Misc/gdbinit
@@ -15,15 +15,6 @@
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging
# and http://bugs.python.org/issue8032 for more gdb 7 python information.
-# gdb version of Py_DECREF(obj) macro
-define py_decref
- set $__obj = $arg0
- set $__obj->ob_refcnt -= 1
- if ($__obj->ob_refcnt == 0)
- set $__obj = _Py_Dealloc($__obj)
- end
-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 PyObject*
@@ -49,7 +40,6 @@ define pylocals
set $_names = co->co_varnames
set $_name = _PyUnicode_AsString(PyTuple_GetItem($_names, $_i))
printf "%s:\n", $_name
- py_decref $_name
pyo f->f_localsplus[$_i]
end
set $_i = $_i + 1