Use gdbpy_ref in py-type.c
authorTom Tromey <tom@tromey.com>
Mon, 7 Nov 2016 03:59:51 +0000 (20:59 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:30 +0000 (19:13 -0700)
commit3bb4338431288002c2225ff660e1500818684c16
treede3b087030013ed09a309ec0ffe182efb9888d4a
parentabf5651e47c0396df58a37951bc03a349169c5f2
Use gdbpy_ref in py-type.c

This changes py-type.c to use gdbpy_ref.
This results in simpler logic and the removal of "goto"s.

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

* python/py-type.c (convert_field, make_fielditem, typy_fields)
(typy_range): Use gdbpy_ref.
gdb/ChangeLog
gdb/python/py-type.c