Use gdbpy_ref in py-prettyprint.c
authorTom Tromey <tom@tromey.com>
Mon, 7 Nov 2016 04:37:01 +0000 (21:37 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:36 +0000 (19:13 -0700)
commit0700aea50c7a77d7908868373d0f9644b0ece29c
treea46e7281bfcd0452a94ae5446b0560070ed17cf8
parent1bb44c9f567c75355c1b4417d88cda959e82a3a3
Use gdbpy_ref in py-prettyprint.c

This changes several functions in py-prettyprint.c to use
gdbpy_ref.

2017-01-10  Tom Tromey  <tom@tromey.com>

* python/py-prettyprint.c (search_pp_list)
(find_pretty_printer_from_objfiles)
(find_pretty_printer_from_progspace)
(find_pretty_printer_from_gdb, find_pretty_printer)
(gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
gdbpy_ref.
gdb/ChangeLog
gdb/python/py-prettyprint.c