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.
This commit is contained in:
parent
fbb1d502ee
commit
4581dc8297
3 changed files with 6 additions and 21 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2018-07-19 Pedro Alves <palves@redhat.com>
|
2018-07-19 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
|
* guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
|
||||||
|
|
17
gdb/utils.c
17
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
|
because while they use the "cleanup API" they are not part of the
|
||||||
"cleanup API". */
|
"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.
|
/* This function is useful for cleanups.
|
||||||
Do
|
Do
|
||||||
|
|
||||||
|
|
|
@ -248,10 +248,6 @@ private:
|
||||||
|
|
||||||
/* Cleanup utilities. */
|
/* Cleanup utilities. */
|
||||||
|
|
||||||
/* For make_cleanup_close see common/filestuff.h. */
|
|
||||||
|
|
||||||
extern struct cleanup *make_cleanup_value_free_to_mark (struct value *);
|
|
||||||
|
|
||||||
/* A deleter for a hash table. */
|
/* A deleter for a hash table. */
|
||||||
struct htab_deleter
|
struct htab_deleter
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue