This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 1/3] PR symtab/20652 - fix psymbol_compare
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> I wonder whether using memcpy is really the correct thing
Pedro> here, considering ginfo.value is a union. I.e., thinking about
Pedro> padding bits not part of the active member. Maybe we're zero
Pedro> initializing the whole value and it works in practice because
Pedro> of that.
Yes, psymbols are fully zero-initialized so that they can be entered
into the bcache. See add_psymbol_to_bcache.
Tom