Change varobj_dynamic::saved_item to unique_ptr
authorTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:33:36 +0000 (09:33 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:33:39 +0000 (09:33 -0700)
commit7446266408f6c8cdf890c23c391c0c803c7077ca
tree493525a9e1c2c72aa009bf0ae82320d023e3548a
parent60ee72f6d3bf10b4bd3ef1315c72c4551c459224
Change varobj_dynamic::saved_item to unique_ptr

This changes varobj_dynamic::saved_item to be a unique_ptr.

gdb/ChangeLog
2020-12-11  Tom Tromey  <tom@tromey.com>

* varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
(varobj_clear_saved_item, update_dynamic_varobj_children):
Update.
gdb/ChangeLog
gdb/varobj.c