diff options
author | Pedro Alves <palves@redhat.com> | 2018-08-24 20:09:19 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-08-24 22:57:16 +0100 |
commit | d98fc15be2b8dd5699c1852db7d9d979231123dc (patch) | |
tree | b90de293d215ac05883021a5ac2da87d63136cb2 /gdb/python/py-bpevent.c | |
parent | da3c873831707454d45cee6705075b27a1732f09 (diff) | |
download | gdb-d98fc15be2b8dd5699c1852db7d9d979231123dc.zip gdb-d98fc15be2b8dd5699c1852db7d9d979231123dc.tar.gz gdb-d98fc15be2b8dd5699c1852db7d9d979231123dc.tar.bz2 |
gdb/python: Use copy-initialization more when possible
gdb/ChangeLog:
2018-08-24 Pedro Alves <palves@redhat.com>
* python/py-bpevent.c (create_breakpoint_event_object): Use
copy-initialization.
* python/py-continueevent.c (emit_continue_event): Use
copy-initialization.
* python/py-exitedevent.c (create_exited_event_object): Return a
gdbpy_ref<>.
(emit_exited_event): Use copy-initialization.
* python/py-inferior.c (python_new_inferior)
(python_inferior_deleted, add_thread_object): Use
copy-initialization.
* python/py-infevents.c (create_inferior_call_event_object)
(create_register_changed_event_object)
(create_memory_changed_event_object): Return a gdbpy_ref<>.
(emit_inferior_call_event, emit_memory_changed_event)
(emit_register_changed_event): Use copy-initialization.
* python/py-newobjfileevent.c (create_new_objfile_event_object):
Return a gdbpy_ref<>.
(emit_new_objfile_event): Use copy-initialization.
(create_clear_objfiles_event_object): Return a gdbpy_ref<>.
(emit_clear_objfiles_event): Use copy-initialization.
* python/py-signalevent.c (create_signal_event_object): Use
copy-initialization.
* python/py-threadevent.c (create_thread_event_object): Use
copy-initialization.
Diffstat (limited to 'gdb/python/py-bpevent.c')
-rw-r--r-- | gdb/python/py-bpevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-bpevent.c b/gdb/python/py-bpevent.c index 03863e4..f6f3c4c 100644 --- a/gdb/python/py-bpevent.c +++ b/gdb/python/py-bpevent.c @@ -28,7 +28,7 @@ gdbpy_ref<> create_breakpoint_event_object (PyObject *breakpoint_list, PyObject *first_bp) { gdbpy_ref<> breakpoint_event_obj - (create_stop_event_object (&breakpoint_event_object_type)); + = create_stop_event_object (&breakpoint_event_object_type); if (breakpoint_event_obj == NULL) return NULL; |