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

Tom Tromey
2023-11-01T17:51:34Z

>>>>> "Dmitry" == Dmitry Neverov via Gdb <gdb@sourceware.org> writes:

Dmitry> Please ignore my previous message regarding an empty
Dmitry> qf_require_partial_symbols(). I think I was wrong and now understand a
Dmitry> bit better where the difference in time comes from.

Thank you for looking into this.

Dmitry> When index is used, the check for templates happens in
Dmitry> dw2_expand_symtabs_matching_symbol(). The name_matcher
Dmitry> (default_symbol_name_matcher) is called before deciding to expand the
Dmitry> symtab. So entries like 'wxObjectDataPtr<wxBitmapBundleImpl>' don't
Dmitry> cause expansion for lookup name wxObjectDataPtr.

Dmitry> I wonder if it is possible to check templates before symtab expansion in
Dmitry> the no-index case as well?

This sounds related to
https://sourceware.org/bugzilla/show_bug.cgi?id=31010

I think it would be good to have a separate bug for your case though.

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

Tom