+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * symtab.c (search_symbols): Remove unused outer cleanup.
+ (make_source_files_completion_list): Remove unused declaration.
+
2017-09-29 Tom Tromey <tom@tromey.com>
* mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
int nfound;
gdb::optional<compiled_regex> preg;
- /* OLD_CHAIN .. RETVAL_CHAIN is always freed, RETVAL_CHAIN .. current
- CLEANUP_CHAIN is freed only in the case of an error. */
- struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
- struct cleanup *retval_chain;
-
gdb_assert (kind <= TYPES_DOMAIN);
ourtype = types[kind];
found = NULL;
tail = NULL;
nfound = 0;
- retval_chain = make_cleanup_free_search_symbols (&found);
+ struct cleanup *retval_chain = make_cleanup_free_search_symbols (&found);
ALL_COMPUNITS (objfile, cust)
{
}
discard_cleanups (retval_chain);
- do_cleanups (old_chain);
*matches = found;
}
completion_list list;
const char *base_name;
struct add_partial_filename_data datum;
- struct cleanup *back_to;
if (!have_full_symbols () && !have_partial_symbols ())
return list;