This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog python/py-utils.c python/pyt ...
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Tue, 21 May 2013 20:52:30 +0000
- Subject: src/gdb ChangeLog python/py-utils.c python/pyt ...
CVSROOT: /cvs/src
Module name: src
Changes by: palves@sourceware.org 2013-05-21 20:52:30
Modified files:
gdb : ChangeLog
gdb/python : py-utils.c python-internal.h
Log message:
Centralize workaround for Python 2.6's Py_DECREF.
Wrap/redefine Py_DECREF ourselves, avoiding the need for uses to care
about extra braces due to the fact that Python only started wrapping Py_DECREF
in 'do {} while (0)' after 2.6.
gdb/
2013-05-21 Pedro Alves <palves@redhat.com>
* python/py-utils.c (py_decref): Remove extra braces.
(gdb_pymodule_addobject): Remove extra braces.
* python-internal.h (gdb_Py_DECREF): New static inline function.
(Py_DECREF): Redefine as calling gdb_Py_DECREF.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15610&r2=1.15611
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-utils.c.diff?cvsroot=src&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/python-internal.h.diff?cvsroot=src&r1=1.75&r2=1.76