diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2010-10-17 19:02:34 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2010-10-17 19:02:34 (GMT) |
commit | 321b713d9b3ef5a54d43ade2b35223d33835fce7 (patch) | |
tree | fbf00f53b1b366b5ab07d84b824f4101db253008 | |
parent | 1468429ea6ee5523d02f5199751dc94c6b3f930c (diff) | |
download | cpython-321b713d9b3ef5a54d43ade2b35223d33835fce7.zip cpython-321b713d9b3ef5a54d43ade2b35223d33835fce7.tar.gz cpython-321b713d9b3ef5a54d43ade2b35223d33835fce7.tar.bz2 |
Merged revisions 85649 via svnmerge from
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.
........
-rw-r--r-- | Misc/gdbinit | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Misc/gdbinit b/Misc/gdbinit index e3482a4..f223875 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 |