Building current gdb on centos-5

Pedro Alves palves@redhat.com
Thu May 30 08:14:00 GMT 2013


On 05/30/2013 09:08 AM, Pedro Alves wrote:

> For the archives, could you please paste what Py_DECREF looks
> like in 2.4?  Thanks!

Nevermind, downloading the 2.4.6's sources only took a minute.  :-)

2.4:

#define Py_DECREF(op)                                   \
        if (_Py_DEC_REFTOTAL  _Py_REF_DEBUG_COMMA       \
            --(op)->ob_refcnt != 0)                     \
                _Py_CHECK_REFCNT(op)                    \
        else                                            \
                _Py_Dealloc((PyObject *)(op))

2.7:

#define Py_DECREF(op)                                   \
    do {                                                \
        if (_Py_DEC_REFTOTAL  _Py_REF_DEBUG_COMMA       \
        --((PyObject*)(op))->ob_refcnt != 0)            \
            _Py_CHECK_REFCNT(op)                        \
        else                                            \
        _Py_Dealloc((PyObject *)(op));                  \
    } while (0)

-- 
Pedro Alves



More information about the Gdb mailing list