Re: Index files are not used in the session where they were created

Dmitry Neverov via Gdb
2023-11-15T10:19:23Z

> I am not sure if it's possible to do this, but I think it would be worth
> investigating.

Is it wrong to do something like the following in the 'if
(symbol_matcher == nullptr)'
branch in cooked_index_functions::expand_symtabs_matching?

enum language cu_lang = entry->per_cu->lang(false);
if (cu_lang != language_unknown && lookup_name->match_type() ==
symbol_name_match_type::FULL)
{
const language_defn *lang_def = language_def (cu_lang);
symbol_name_matcher_ftype *name_matcher =
lang_def->get_symbol_name_matcher (lookup_name_without_params);
auto_obstack temp_storage;
if (!name_matcher(entry->full_name(&temp_storage),
lookup_name_without_params, nullptr))
continue;
}

Dmitry