diff options
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c index edcd4d0..d552402 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -722,6 +722,20 @@ free_all_values (void) all_values = 0; } +/* Frees all the elements in a chain of values. */ + +void +free_value_chain (struct value *v) +{ + struct value *next; + + for (; v; v = next) + { + next = value_next (v); + value_free (v); + } +} + /* Remove VAL from the chain all_values so it will not be freed automatically. */ |