int funfirstline, struct symbol *sym);
static void add_matching_symbols_to_info (const char *name,
+ domain_enum domain,
struct collect_info *info,
struct program_space *pspace);
static void add_all_symbol_names_from_pspace (struct collect_info *info,
+ domain_enum domain,
struct program_space *pspace,
VEC (const_char_ptr) *names);
return values;
}
- add_all_symbol_names_from_pspace (&info, NULL, symbol_names);
+ add_all_symbol_names_from_pspace (&info, VAR_DOMAIN, NULL, symbol_names);
if (!VEC_empty (block_symbol_d, info.result.symbols)
|| !VEC_empty (bound_minimal_symbol_d, info.result.minimal_symbols))
static void
add_all_symbol_names_from_pspace (struct collect_info *info,
+ domain_enum domain,
struct program_space *pspace,
VEC (const_char_ptr) *names)
{
const char *iter;
for (ix = 0; VEC_iterate (const_char_ptr, names, ix, iter); ++ix)
- add_matching_symbols_to_info (iter, info, pspace);
+ add_matching_symbols_to_info (iter, domain, info, pspace);
}
static void
/* We have a list of candidate symbol names, so now we
iterate over the symbol tables looking for all
matches in this pspace. */
- add_all_symbol_names_from_pspace (&info, pspace, result_names);
+ add_all_symbol_names_from_pspace (&info, VAR_DOMAIN, pspace,
+ result_names);
VEC_truncate (typep, superclass_vec, 0);
last_result_len = VEC_length (const_char_ptr, result_names);
/* Try NAME as an Objective-C selector. */
find_imps (name, &symbol_names);
if (!VEC_empty (const_char_ptr, symbol_names))
- add_all_symbol_names_from_pspace (&info, state->search_pspace,
+ add_all_symbol_names_from_pspace (&info, VAR_DOMAIN, state->search_pspace,
symbol_names);
else
- add_matching_symbols_to_info (name, &info, state->search_pspace);
+ {
+ add_matching_symbols_to_info (name, VAR_DOMAIN, &info,
+ state->search_pspace);
+ }
do_cleanups (cleanup);
static void
add_matching_symbols_to_info (const char *name,
+ domain_enum domain,
struct collect_info *info,
struct program_space *pspace)
{
{
if (elt == NULL)
{
- iterate_over_all_matching_symtabs (info->state, name, VAR_DOMAIN,
+ iterate_over_all_matching_symtabs (info->state, name, domain,
collect_symbols, info,
pspace, 1);
search_minsyms_for_name (info, name, pspace, NULL);
been filtered out earlier. */
gdb_assert (!SYMTAB_PSPACE (elt)->executing_startup);
set_current_program_space (SYMTAB_PSPACE (elt));
- iterate_over_file_blocks (elt, name, VAR_DOMAIN,
+ iterate_over_file_blocks (elt, name, domain,
collect_symbols, info);
/* If no new symbols were found in this iteration and this symtab