]> granicus.if.org Git - python/commitdiff
Merged revisions 85649 via svnmerge from
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 17 Oct 2010 19:01:13 +0000 (19:01 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 17 Oct 2010 19:01:13 +0000 (19:01 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85649 | gregory.p.smith | 2010-10-17 11:59:56 -0700 (Sun, 17 Oct 2010) | 2 lines

  The py_decref macro was incorrect and unnecessary.
........

Misc/gdbinit

index a5be5df978702425d9308ab67c27430cf2bf7964..91971b7b81b80ba9f94049e411c29331e6b05e58 100644 (file)
 # 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 = PyString_AsString(PyTuple_GetItem($_names, $_i))
            printf "%s:\n", $_name
-            py_decref $_name
             pyo f->f_localsplus[$_i]
        end
         set $_i = $_i + 1