Change varobj to use value_ref_ptr
authorTom Tromey <tom@tromey.com>
Wed, 4 Apr 2018 00:15:13 +0000 (18:15 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 6 Apr 2018 21:44:48 +0000 (15:44 -0600)
commitb4d61099ba840824fd0aac9800403f6278476347
treee2424dd947930be814dfb299fd671de6bd16037e
parent9b5587295bbc57e5e0453b659e24d7c2b504b894
Change varobj to use value_ref_ptr

This changes varobj to use value_ref_ptr, allowing the removal of some
manual reference count management.

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

* varobj.h (struct varobj) <value>: Now a value_ref_ptr.
* varobj.c (varobj_set_display_format, varobj_set_value)
(install_default_visualizer, construct_visualizer)
(install_new_value, ~varobj, varobj_get_value_type)
(my_value_of_variable, varobj_editable_p): Update.
* c-varobj.c (c_describe_child, c_value_of_variable)
(cplus_number_of_children, cplus_describe_child): Update.
* ada-varobj.c (ada_number_of_children, ada_name_of_child)
(ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
(ada_value_of_variable, ada_value_is_changeable_p): Update.
gdb/ChangeLog
gdb/ada-varobj.c
gdb/c-varobj.c
gdb/varobj.c
gdb/varobj.h