From 790217f6736cc0f0a177a681ba1c7cc5f995cfe7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 18 May 2018 15:42:27 -0600 Subject: 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/ada-lang.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index fe6212c..b05203f 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 */ -- cgit v1.1