Change pspace_to_pspace_object to return a new reference
authorTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 03:44:19 +0000 (21:44 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 16 Sep 2018 13:25:56 +0000 (07:25 -0600)
commit3c7aa30778a1615d88c13508c04138ef2499112d
treecdfc313d4149467e51b5495cd1e41a416b9653be
parent8743a9cdd20055e02a20c24c37b5312e3e626691
Change pspace_to_pspace_object to return a new reference

This changes pspace_to_pspace_object to return a new reference and
fixes up all the callers.

gdb/ChangeLog
2018-09-16  Tom Tromey  <tom@tromey.com>

* python/py-inferior.c (infpy_get_progspace): Update.
* python/python-internal.h (pspace_to_pspace_object): Change
return type.
* python/py-newobjfileevent.c
(create_clear_objfiles_event_object): Update.
* python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
Update.
* python/python.c (gdbpy_get_current_progspace): Update.
(gdbpy_progspaces): Update.
* python/py-progspace.c (pspace_to_pspace_object): Return a new
reference.
* python/py-objfile.c (objfpy_get_progspace): Update.
* python/py-prettyprint.c (find_pretty_printer_from_progspace):
Update.
gdb/ChangeLog
gdb/python/py-inferior.c
gdb/python/py-newobjfileevent.c
gdb/python/py-objfile.c
gdb/python/py-prettyprint.c
gdb/python/py-progspace.c
gdb/python/py-xmethods.c
gdb/python/python-internal.h
gdb/python/python.c