Re: [PATCH v2 00/28] Search symbols via quick API

Tom Tromey
2025-04-28T22:07:21Z

>>>>> "Guinevere" == Guinevere Larsen <guinevere@redhat.com> writes:

Guinevere> I am having an issue with the quick_fns interface, and while it isn't
Guinevere> affected by this series directly (as I originally thought it could
Guinevere> be), I would appreciate if you could share your expertise on this
Guinevere> area. The TL;DR of the issue is: the quick API seems to be caching
Guinevere> something and searching objfile B for a symbol can return a symbol
Guinevere> with details from objfile A (that was loaded first). I tried looking
Guinevere> around for where the cache could be hidden, but couldn't find it. Do
Guinevere> you know if where the cache is, if it really exists?

Look for symbol_cache in symtab.c.

Also there's a separate cache in ada-lang.c, but this one only affects
Ada.

It's been a while since I looked to see if either of these are really
helpful.

There are also some debug settings for symbol lookup, look in symtab.c
and symfile-debug.c.

Tom