This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 2/3] Remove cleanup from ada_collect_symbol_completion_matches
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sat, 19 May 2018 10:06:05 -0600
- Subject: [RFA 2/3] Remove cleanup from ada_collect_symbol_completion_matches
- References: <20180519160606.19969-1-tom@tromey.com>
ada_collect_symbol_completion_matches installs a null_cleanup but not
any other cleanups. This patch removes it.
gdb/ChangeLog
2018-05-18 Tom Tromey <tom@tromey.com>
* 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/ada-lang.c b/gdb/ada-lang.c
index da5f75030c..cbb0fe9d82 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -6445,7 +6445,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);
@@ -6550,8 +6549,6 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker,
lookup_name, text, word);
}
}
-
- do_cleanups (old_chain);
}
/* Field Access */
--
2.13.6