aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-04-03 18:31:01 -0600
committerTom Tromey <tom@tromey.com>2018-04-06 15:44:49 -0600
commitb562120198d9fa2c191823508813daa3b62a3a37 (patch)
tree09f694f415f70994b6b8fed043258181d6642fad /gdb/value.c
parent4d0266a0e0d9e9b615b04ff209a73d3725495835 (diff)
downloadgdb-b562120198d9fa2c191823508813daa3b62a3a37.zip
gdb-b562120198d9fa2c191823508813daa3b62a3a37.tar.gz
gdb-b562120198d9fa2c191823508813daa3b62a3a37.tar.bz2
Remove free_all_values
free_all_values is unused, so this removes it. gdb/ChangeLog 2018-04-06 Tom Tromey <tom@tromey.com> * value.h (free_all_values): Remove. * value.c (free_all_values): Remove.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 677ec42..a84c196 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1638,26 +1638,6 @@ value_free_to_mark (const struct value *mark)
all_values = val;
}
-/* Free all the values that have been allocated (except for those released).
- Call after each command, successful or not.
- In practice this is called before each command, which is sufficient. */
-
-void
-free_all_values (void)
-{
- struct value *val;
- struct value *next;
-
- for (val = all_values; val; val = next)
- {
- next = val->next;
- val->released = 1;
- value_decref (val);
- }
-
- all_values = 0;
-}
-
/* Frees all the elements in a chain of values. */
void