This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/2] Simplify the psymbol hash function
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> So now I'm thinking that your patch must be correct. I'd still
Pedro> like to learn more about where is it that we intern the symbol
Pedro> names, though, and I still think it'd be great to add a comment
Pedro> to the code.
It happens via symbol_set_names. There is some subtlety here in that
sometimes a name won't be copied (this saves memory by referring to
strings in the mapped debuginfo), and also IIRC Ada adds some
complexities too.
I can add comments to the psymbol hash and comparison functions to
mention this.
Tom