aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-05-21 20:53:21 +0000
committerPedro Alves <palves@redhat.com>2013-05-21 20:53:21 +0000
commitc8c735b96348ead98a7ddeb25a5eed4912586396 (patch)
tree7b60b5ecb7cedf471fa2f927fce6cea0a4e92693 /gdb/ChangeLog
parent1915daebe6683fb1cdd42c87a6db5532a396bbc6 (diff)
downloadgdb-c8c735b96348ead98a7ddeb25a5eed4912586396.zip
gdb-c8c735b96348ead98a7ddeb25a5eed4912586396.tar.gz
gdb-c8c735b96348ead98a7ddeb25a5eed4912586396.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 32c5558..24e5eb4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
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 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.