diff options
author | Tom Tromey <tom@tromey.com> | 2020-12-11 09:33:36 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-12-11 09:33:40 -0700 |
commit | 11106495078658246feda85cb7566c1a6aacb1e1 (patch) | |
tree | 9afbd6350466dd4011e8e40e11cf80c150552bae /gdb/python/py-varobj.c | |
parent | 24fd95b4cd40f0108299c02f31f2d2a129f83769 (diff) | |
download | binutils-11106495078658246feda85cb7566c1a6aacb1e1.zip binutils-11106495078658246feda85cb7566c1a6aacb1e1.tar.gz binutils-11106495078658246feda85cb7566c1a6aacb1e1.tar.bz2 |
Change varobj_item::value to a value_ref_ptr
This changes varobj_item::value to be a value_ref_ptr, removing some
manual management.
gdb/ChangeLog
2020-12-11 Tom Tromey <tom@tromey.com>
* varobj.c (install_dynamic_child, varobj_clear_saved_item)
(update_dynamic_varobj_children, create_child)
(create_child_with_value): Update.
* varobj-iter.h (struct varobj_item) <value>: Now a
value_ref_ptr.
* python/py-varobj.c (py_varobj_iter::next): Call release_value.
Diffstat (limited to 'gdb/python/py-varobj.c')
-rw-r--r-- | gdb/python/py-varobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-varobj.c b/gdb/python/py-varobj.c index dfc9e2b..e550c7b 100644 --- a/gdb/python/py-varobj.c +++ b/gdb/python/py-varobj.c @@ -111,7 +111,7 @@ py_varobj_iter::next () } vitem = new varobj_item (); - vitem->value = convert_value_from_python (py_v); + vitem->value = release_value (convert_value_from_python (py_v)); if (vitem->value == NULL) gdbpy_print_stack (); vitem->name = name; |