aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-19 08:49:58 -0600
committerTom Tromey <tom@tromey.com>2018-07-19 08:52:24 -0600
commit4581dc8297381651284e2f4a9f835eebcc6f2328 (patch)
tree2d43e930aba2243becf5f227168842758819bb9e /gdb/utils.c
parentfbb1d502eeae135dbe6ac3b0b122e574a9b888d6 (diff)
downloadgdb-4581dc8297381651284e2f4a9f835eebcc6f2328.zip
gdb-4581dc8297381651284e2f4a9f835eebcc6f2328.tar.gz
gdb-4581dc8297381651284e2f4a9f835eebcc6f2328.tar.bz2
Remove make_cleanup_value_free_to_mark
Pedro's patch to introduce gdbscm_wrap removed the last caller of make_cleanup_value_free_to_mark. This patch removes this function. I'm checking this in as obvious. Tested by rebuilding, and by grepping. gdb/ChangeLog 2018-07-19 Tom Tromey <tom@tromey.com> * utils.c (do_value_free_to_mark) (make_cleanup_value_free_to_mark): Remove. * utils.h (make_cleanup_value_free_to_mark): Remove.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 09381d9..bfcb45b 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -141,23 +141,6 @@ show_pagination_enabled (struct ui_file *file, int from_tty,
because while they use the "cleanup API" they are not part of the
"cleanup API". */
-/* Helper for make_cleanup_value_free_to_mark. */
-
-static void
-do_value_free_to_mark (void *value)
-{
- value_free_to_mark ((struct value *) value);
-}
-
-/* Free all values allocated since MARK was obtained by value_mark
- (except for those released) when the cleanup is run. */
-
-struct cleanup *
-make_cleanup_value_free_to_mark (struct value *mark)
-{
- return make_cleanup (do_value_free_to_mark, mark);
-}
-
/* This function is useful for cleanups.
Do