This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] symbol cache: hash STRUCT_DOMAIN symbols as VAR_DOMAIN
- From: Doug Evans <xdje42 at gmail dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 6 Apr 2015 08:34:56 -0700
- Subject: Re: [PATCH] symbol cache: hash STRUCT_DOMAIN symbols as VAR_DOMAIN
- Authentication-results: sourceware.org; auth=none
- References: <m3zj8t3ulo dot fsf at seba dot sebabeach dot org>
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.