binutils-gdb/gdb/python
Tom Tromey 61fd3e7389 Change inferior_to_inferior_object to return a gdbpy_ref
Most callers of inferior_to_inferior_object already use a gdbpy_ref,
so this changes inferior_to_inferior_object to return one.  Doing this
revealed that create_thread_object was not correctly handling the case
where inferior_to_inferior_object failed, so this patch fixes this as
well.

gdb/ChangeLog
2019-01-02  Tom Tromey  <tom@tromey.com>

	* python/python-internal.h (inferior_to_inferior_object): Change
	return type.
	* python/py-exitedevent.c (create_exited_event_object): Update.
	* python/py-inferior.c (inferior_to_inferior_object): Return
	gdbpy_ref.
	(python_new_inferior, python_inferior_deleted)
	(thread_to_thread_object, delete_thread_object)
	(build_inferior_list, gdbpy_selected_inferior): Update.
	* python/py-infthread.c (create_thread_object): Update.  Also fail
	if inferior_to_inferior_object fails.
2019-01-02 16:28:33 -07:00
..
lib/gdb Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-all-events.def Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-arch.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-auto-load.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-block.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-bpevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-breakpoint.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-cmd.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-continueevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-event-types.def Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-event.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-event.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-events.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-evtregistry.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-evts.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-exitedevent.c Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
py-finishbreakpoint.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-frame.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-framefilter.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-function.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-gdb-readline.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-inferior.c Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
py-infevents.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-infthread.c Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
py-instruction.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-instruction.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-lazy-string.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-linetable.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-newobjfileevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-objfile.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-param.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-prettyprint.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-progspace.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-btrace.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-btrace.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-full.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-full.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-ref.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-signalevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-stopevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-stopevent.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-symbol.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-symtab.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-threadevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-type.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-unwind.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-utils.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-value.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-varobj.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-xmethods.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
python-config.py configure uses incorrect link order when testing libpython 2018-05-04 10:08:09 -04:00
python-internal.h Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
python.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
python.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00