Use gdbpy_ref in py-value.c
authorTom Tromey <tom@tromey.com>
Mon, 7 Nov 2016 04:50:36 +0000 (21:50 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:37 +0000 (19:13 -0700)
commit53a0cca3bd0f6ae80b2d6fc34b2873046965c7f0
treeeb2079f9aa5ff7cf0e127add61ebaf78549e7fcb
parentff3724f5123b9d9c52a07f7c1a5d85852e666c48
Use gdbpy_ref in py-value.c

This changes a few functions in py-value.c to use gdbpy_ref.

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

* python/py-value.c (value_has_field, get_field_flag)
(get_field_type, valpy_getitem, convert_value_from_python): Use
gdbpy_ref.
gdb/ChangeLog
gdb/python/py-value.c