aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-18 15:42:27 -0600
committerTom Tromey <tom@tromey.com>2018-05-21 10:01:15 -0600
commit790217f6736cc0f0a177a681ba1c7cc5f995cfe7 (patch)
tree4340ab0ec5b8b90b1ee391c46eafc470e2ed8805 /gdb/ada-lang.c
parent6f46ac8531ead61003c96b8e2fa6a383ea8d8c58 (diff)
downloadgdb-790217f6736cc0f0a177a681ba1c7cc5f995cfe7.zip
gdb-790217f6736cc0f0a177a681ba1c7cc5f995cfe7.tar.gz
gdb-790217f6736cc0f0a177a681ba1c7cc5f995cfe7.tar.bz2
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 <tom@tromey.com> * ada-lang.c (ada_collect_symbol_completion_matches): Remove cleanup.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c3
1 files changed, 0 insertions, 3 deletions
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 */