This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]