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.
This commit is contained in:
parent
a036ba48ef
commit
db6573d664
9 changed files with 63 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue