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-prettyprint.c pyth ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-05-21 20:53:21

Modified files:
	gdb            : ChangeLog 
	gdb/python     : py-prettyprint.c py-utils.c 

Log message:
	py_decref: Don't check for NULL before calling Py_DECREF.
	
	The only difference between Py_DECREF and Py_XDECREF is that the latter allows passing
	in a NULL object, while the former prohibits it.  Given that, it's natural to expect
	the same from py_decref vs py_xdecref.
	
	gdb/
	2013-05-21  Pedro Alves  <palves@redhat.com>
	
	* python/py-prettyprint.c (apply_val_pretty_printer): Check
	whether PRINTER is NULL before installing a Py_DECREF cleanup.
	* python/py-utils.c (py_decref): Don't check for NULL before
	calling Py_DECREF.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15611&r2=1.15612
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-prettyprint.c.diff?cvsroot=src&r1=1.33&r2=1.34
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-utils.c.diff?cvsroot=src&r1=1.22&r2=1.23


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