aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-event.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-15 14:22:02 +0000
committerTom Tromey <tromey@redhat.com>2012-08-15 14:22:02 +0000
commitdb6573d6646f950b5a758fd68d180de8ae1e8981 (patch)
tree5c1765409a97237e924cd9f3a0dbaff697f631de /gdb/python/py-event.c
parenta036ba48efc7145d0cd2de136be0443b65f672d2 (diff)
downloadgdb-db6573d6646f950b5a758fd68d180de8ae1e8981.zip
gdb-db6573d6646f950b5a758fd68d180de8ae1e8981.tar.gz
gdb-db6573d6646f950b5a758fd68d180de8ae1e8981.tar.bz2
PR python/14387:
* python/py-bpevent.c (create_breakpoint_event_object): Update comment. * python/py-event.c (evpy_add_attribute): Update comment. * python/py-exitedevent.c (create_exited_event_object): Fix reference counting and error handling. * python/py-newobjfileevent.c (create_new_objfile_event_object): Fix reference counting. * python/py-signalevent.c (create_signal_event_object): Fix reference counting and error handling. * python/py-stopevent.c (emit_stop_event): Fix reference counting. * python/py-threadevent.c (get_event_thread): Return a borrowed reference. * python/py-type.c (convert_field): Fix reference counting.
Diffstat (limited to 'gdb/python/py-event.c')
-rw-r--r--gdb/python/py-event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-event.c b/gdb/python/py-event.c
index 4789761..7c88fcd 100644
--- a/gdb/python/py-event.c
+++ b/gdb/python/py-event.c
@@ -48,7 +48,8 @@ create_event_object (PyTypeObject *py_type)
/* Add the attribute ATTR to the event object EVENT. In
python this attribute will be accessible by the name NAME.
- returns 0 if the operation succeeds and -1 otherwise. */
+ returns 0 if the operation succeeds and -1 otherwise. This
+ function acquires a new reference to ATTR. */
int
evpy_add_attribute (PyObject *event, char *name, PyObject *attr)