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

Dmitry Neverov via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAEY59_+=+v+2keFLG3dZWaHAv1k8h=GDTk8LBGeJQW5U_re-KA@mail.gmail.com>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.