Remove free_value_chain
authorTom Tromey <tom@tromey.com>
Wed, 4 Apr 2018 02:20:01 +0000 (20:20 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 6 Apr 2018 21:44:49 +0000 (15:44 -0600)
commita6535de1903d9caad8c10c1d81c51a29612456a6
tree6dad69fd5bbd4b33f12f6bdf15287067e1282bd0
parentb562120198d9fa2c191823508813daa3b62a3a37
Remove free_value_chain

This patch changes value_release_to_mark and fetch_subexp_value to
return a std::vector of value references, rather than relying on the
"next" field that is contained in a struct value.  This makes it
simpler to reason about the returned values, and also allows for the
removal of free_value_chain.

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

* value.h (fetch_subexp_value, value_release_to_mark): Update.
(free_value_chain): Remove.
* value.c (free_value_chain): Remove.
(value_release_to_mark): Return a std::vector.
* ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
std::vector.
(check_condition): Update.
* eval.c (fetch_subexp_value): Change "val_chain" to a
std::vector.
* breakpoint.c (update_watchpoint): Update.
(can_use_hardware_watchpoint): Change "vals" to a std::vector.
gdb/ChangeLog
gdb/breakpoint.c
gdb/eval.c
gdb/ppc-linux-nat.c
gdb/value.c
gdb/value.h
This page took 0.027447 seconds and 4 git commands to generate.