From 790217f6736cc0f0a177a681ba1c7cc5f995cfe7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 18 May 2018 15:42:27 -0600 Subject: [PATCH] Remove cleanup from ada_collect_symbol_completion_matches ada_collect_symbol_completion_matches installs a null_cleanup but not any other cleanups. This patch removes it. ChangeLog 2018-05-21 Tom Tromey * ada-lang.c (ada_collect_symbol_completion_matches): Remove cleanup. --- gdb/ChangeLog | 5 +++++ gdb/ada-lang.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 018a98ec544..5d773566ec3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-05-21 Tom Tromey + + * ada-lang.c (ada_collect_symbol_completion_matches): Remove + cleanup. + 2018-05-21 Tom Tromey * ada-lang.c (ada_exception_message_1, ada_exception_message): diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index fe6212c53f5..b05203f081f 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -6444,7 +6444,6 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker, struct objfile *objfile; const struct block *b, *surrounding_static_block = 0; struct block_iterator iter; - struct cleanup *old_chain = make_cleanup (null_cleanup, NULL); gdb_assert (code == TYPE_CODE_UNDEF); @@ -6549,8 +6548,6 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker, lookup_name, text, word); } } - - do_cleanups (old_chain); } /* Field Access */ -- 2.30.2