]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Change objfile_to_objfile_object to return a new reference
authorTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 05:06:09 +0000 (23:06 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 16 Sep 2018 13:25:56 +0000 (07:25 -0600)
commit0a9db5ad8a6c49cec7adb7e3ef29c558fcfbf11b
tree93925dced92f15d3b5e3986ba75f023896f64512
parent3c7aa30778a1615d88c13508c04138ef2499112d
Change objfile_to_objfile_object to return a new reference

This changes objfile_to_objfile_object to return a new references and
fixes up all the uses.

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

* python/py-progspace.c (pspy_get_objfiles): Update.
* python/python-internal.h (objfile_to_objfile_object): Change
return type.
* python/py-newobjfileevent.c (create_new_objfile_event_object):
Update.
* python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
Update.
* python/python.c (gdbpy_get_current_objfile): Update.
(gdbpy_objfiles): Update.
* python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
Update.
(objfile_to_objfile_object): Return a new reference.
* python/py-symtab.c (stpy_get_objfile): Update.
* python/py-prettyprint.c (find_pretty_printer_from_objfiles):
Update.
gdb/ChangeLog
gdb/python/py-newobjfileevent.c
gdb/python/py-objfile.c
gdb/python/py-prettyprint.c
gdb/python/py-progspace.c
gdb/python/py-symtab.c
gdb/python/py-xmethods.c
gdb/python/python-internal.h
gdb/python/python.c