This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] symbol cache: hash STRUCT_DOMAIN symbols as VAR_DOMAIN


On Wed, Feb 4, 2015 at 7:28 PM, Doug Evans <xdje42@gmail.com> wrote:
> Hi.
>
> While looking at the contents of the symbol cache after adding support
> for trying multiple slots I noticed structs occupying more than one slot.
> This is due to symbol_matches_domain support.
> This patch fixes it by treating STRUCT_DOMAIN as VAR_DOMAIN
> when computing the hash.
>
> I also added symbol domain names to debugging output as it was useful.
>
> 2015-02-04  Doug Evans  <xdje42@gmail.com>
>
>         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
>         VAR_DOMAIN.
>         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
>         Include symbol domain in debugging output.

Committed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]