This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove struct symbol_search member symtab.
- From: Doug Evans <xdje42 at gmail dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 16 Dec 2014 22:06:30 -0800
- Subject: Re: [PATCH] Remove struct symbol_search member symtab.
- Authentication-results: sourceware.org; auth=none
- References: <m3r3w4hyus dot fsf at seba dot sebabeach dot org>
On Fri, Dec 12, 2014 at 10:01 PM, Doug Evans <xdje42@gmail.com> wrote:
> Hi.
>
> Since symbols have a backlink to their containing symtab,
> there's no real need to store symtab in struct symbol_search.
> [Is there?]
>
> Regression tested on amd64-linux.
>
> 2014-12-10 Doug Evans <xdje42@gmail.com>
>
> * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
> * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
> (print_symbol_info): Delete arg symtab. All callers updated.
> (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
Committed.