binutils-gdb/gdb/python
Pedro Alves c8c735b963 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.
2013-05-21 20:53:21 +00:00
..
lib/gdb 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00
py-arch.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-auto-load.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-block.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-bpevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-breakpoint.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-cmd.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-continueevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-event.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-event.h * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-events.h * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-evtregistry.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-evts.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-exitedevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-finishbreakpoint.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-frame.c * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame) 2013-05-20 20:37:06 +00:00
py-framefilter.c 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00
py-function.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-gdb-readline.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-inferior.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-infthread.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-lazy-string.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-newobjfileevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-objfile.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-param.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-prettyprint.c py_decref: Don't check for NULL before calling Py_DECREF. 2013-05-21 20:53:21 +00:00
py-progspace.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-signalevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-stopevent.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
py-stopevent.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
py-symbol.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-symtab.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-threadevent.c * python/py-threadevent.c (get_event_thread): Use 2013-05-20 20:10:03 +00:00
py-type.c * python/py-type.c (typy_fields): Unconditionally decref 'r'. 2013-05-20 20:37:48 +00:00
py-utils.c py_decref: Don't check for NULL before calling Py_DECREF. 2013-05-21 20:53:21 +00:00
py-value.c * python/py-value.c (valpy_get_dynamic_type): Simplify 2013-05-20 20:38:47 +00:00
python-config.py Add support for Python 3. 2012-12-12 16:47:30 +00:00
python-internal.h Centralize workaround for Python 2.6's Py_DECREF. 2013-05-21 20:52:30 +00:00
python.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
python.h 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00