Return gdbpy_ref from gdbpy_get_varobj_pretty_printer
authorTom Tromey <tom@tromey.com>
Wed, 24 Oct 2018 22:45:41 +0000 (16:45 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 4 Nov 2018 15:01:01 +0000 (08:01 -0700)
commita31abe80ea4c45b544f3ae04bc63ccaeba530e0f
treea6caa5b1524a6939eb14c2f65f7c61895ea42965
parent833d985d1c7f69f953a5c7ddcf2af1d001504961
Return gdbpy_ref from gdbpy_get_varobj_pretty_printer

This changes gdbpy_get_varobj_pretty_printer to return a gdbpy_ref.

gdb/ChangeLog
2018-11-04  Tom Tromey  <tom@tromey.com>

* varobj.c (install_default_visualizer): Update.
* python/python-internal.h (gdbpy_get_varobj_pretty_printer):
Return gdbpy_ref.
* python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
(find_pretty_printer_from_progspace)
(find_pretty_printer_from_gdb, find_pretty_printer)
(gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
(gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
Update.
gdb/ChangeLog
gdb/python/py-prettyprint.c
gdb/python/python-internal.h
gdb/varobj.c