This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Introduce notion of "search name"
Paul Hilfinger <hilfingr@gnat.com> writes:
> Do you really object to our simply making permanent copies of these
> names as needed? (I'm perfectly happy to ditch the kludgy
> objfile-finding hack.) You can't expect to save any space by
> reclaiming these demangled names space when you reload the symbol
> file, because (as I argued before) the set of demangled names
> generally doesn't change much in such cases, and we are "interning"
> the demangled symbols, so that multiple computations of the same
> demangled symbol don't increase space. This particular choice of name
> storage is confined to the Ada module (the symbol table module doesn't
> apply free to names stored in symbols, partial symbols, or minimal
> symbols, so it doesn't care if one them has a longer than necessary
> lifetime).
I tend to think it's not ideal, but okay. Daniel, you were unhappy
with this; did you have suggestions?