diff options
author | Tom Tromey <tom@tromey.com> | 2017-10-08 12:20:49 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-10-08 23:07:37 -0600 |
commit | 757325a3f24e01bf8e7b7214f33c546bc52d1d12 (patch) | |
tree | dcc5507c805dd3805e066c269d4154b50f3e0f19 /gdb/utils.h | |
parent | b9c04fb2681dd5706d2cafa5dcc6bdcd99016cf4 (diff) | |
download | gdb-757325a3f24e01bf8e7b7214f33c546bc52d1d12.zip gdb-757325a3f24e01bf8e7b7214f33c546bc52d1d12.tar.gz gdb-757325a3f24e01bf8e7b7214f33c546bc52d1d12.tar.bz2 |
Remove make_cleanup_value_free
This removes make_cleanup_value_free, in favor of a unique_ptr
specialization.
Regression tested by the buildbot.
gdb/ChangeLog
2017-10-08 Tom Tromey <tom@tromey.com>
* utils.h (make_cleanup_value_free): Remove.
* utils.c (do_value_free, struct cleanup): Remove.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
Use gdb_value_up.
* value.h (struct value_deleter): New.
(gdb_value_up): New typedef.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index 022af51..7af0a5f 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -215,7 +215,6 @@ struct target_ops; extern struct cleanup *make_cleanup_unpush_target (struct target_ops *ops); extern struct cleanup *make_cleanup_value_free_to_mark (struct value *); -extern struct cleanup *make_cleanup_value_free (struct value *); /* A deleter for a hash table. */ struct htab_deleter |