Remove value::next and value::released
authorTom Tromey <tom@tromey.com>
Wed, 4 Apr 2018 03:52:31 +0000 (21:52 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 6 Apr 2018 21:44:50 +0000 (15:44 -0600)
commit062d818d2535d4bc9ccd5dbf3c6702b9f3e763cc
treea947521de15f30277e7b0187479024d4cb9991ef
parenta6535de1903d9caad8c10c1d81c51a29612456a6
Remove value::next and value::released

This patch converts all_values to simply hold a list of references to
values.  Now, there's no need to have a value record whether or not it
is released -- there is only a single reference-counting mechanism for
values.  So, this also removes value::next, value::released, and
value_next.

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

* value.c (struct value) <released, next>: Remove.
(all_values): Now a std::vector.
(allocate_value_lazy): Update.
(value_next): Remove.
(value_mark, value_free_to_mark, release_value)
(value_release_to_mark): Update.
gdb/ChangeLog
gdb/value.c