8sa1-binutils-gdb/gdb/python
Tom Tromey 35c61a1dd5 Small event ownership clean up in Python layer
It seems cleaner to me for functions like create_thread_event_object,
which pass object ownership to their callers, to directly return a
gdb_ref<>.  This way the ownership transfer is part of the API.  This
patch makes this change.

ChangeLog
2017-09-11  Tom Tromey  <tom@tromey.com>

	* python/py-threadevent.c (create_thread_event_object): Return
	gdbpy_ref.
	* python/py-stopevent.h (create_stop_event_object)
	(create_breakpoint_event_object, create_signal_event_object):
	Update.
	* python/py-stopevent.c (create_stop_event_object): Return
	gdbpy_ref.
	(emit_stop_event): Update.
	* python/py-signalevent.c (create_signal_event_object): Return
	gdbpy_ref.
	* python/py-infevents.c (create_inferior_call_event_object):
	Update.
	* python/py-event.h (create_event_object)
	(create_thread_event_object): Update.
	* python/py-event.c (create_event_object): Return gdbpy_ref.
	* python/py-continueevent.c: Return gdbpy_ref.
	* python/py-bpevent.c (create_breakpoint_event_object): Return
	gdbpy_ref.
2017-09-11 14:15:21 -06:00
..
lib/gdb
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-breakpoint.c Avoid some manual memory management in Python 2017-08-03 07:59:07 -06:00
py-cmd.c Introduce gdb_argv, a class wrapper for buildargv 2017-08-03 07:59:08 -06:00
py-continueevent.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-event.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-event.h Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-events.h Add new_inferior, inferior_deleted, and new_thread events 2017-09-11 14:15:20 -06:00
py-evtregistry.c
py-evts.c Add new_inferior, inferior_deleted, and new_thread events 2017-09-11 14:15:20 -06:00
py-exitedevent.c
py-finishbreakpoint.c
py-frame.c Kill init_sal 2017-09-04 17:11:45 +01:00
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c Add new_inferior, inferior_deleted, and new_thread events 2017-09-11 14:15:20 -06:00
py-infevents.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-infthread.c
py-instruction.c Python: Introduce gdb.Instruction class 2017-05-02 11:35:54 +02:00
py-instruction.h Python: Introduce gdb.Instruction class 2017-05-02 11:35:54 +02:00
py-lazy-string.c
py-linetable.c
py-newobjfileevent.c
py-objfile.c
py-param.c Use gdb_argv in Python 2017-08-03 07:59:09 -06:00
py-prettyprint.c
py-progspace.c
py-record-btrace.c btrace: Store btrace_insn in an std::vector 2017-09-04 10:46:36 +02:00
py-record-btrace.h Python: Move and rename gdb.BtraceFunction 2017-05-02 11:35:54 +02:00
py-record-full.c
py-record-full.h
py-record.c Python: Introduce gdb.Instruction class 2017-05-02 11:35:54 +02:00
py-record.h Python: Move and rename gdb.BtraceFunction 2017-05-02 11:35:54 +02:00
py-ref.h
py-signalevent.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-stopevent.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-stopevent.h Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-symbol.c
py-symtab.c
py-threadevent.c Small event ownership clean up in Python layer 2017-09-11 14:15:21 -06:00
py-type.c Make cp_comp_to_string return a gdb::unique_xmalloc_ptr<char> 2017-08-09 15:04:32 +01:00
py-unwind.c Fix Python unwinder frames regression 2017-07-06 00:19:24 +01:00
py-utils.c
py-value.c Stop assuming no-debug-info functions return int 2017-09-04 20:21:13 +01:00
py-varobj.c Avoid some manual memory management in Python 2017-08-03 07:59:07 -06:00
py-xmethods.c
python-config.py
python-internal.h Add new_inferior, inferior_deleted, and new_thread events 2017-09-11 14:15:20 -06:00
python.c Add new_inferior, inferior_deleted, and new_thread events 2017-09-11 14:15:20 -06:00
python.h