This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [RFA libiberty, gdb] Add hashtab support to filename_ncmp.c and use it in gdb.
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gdb at sourceware dot org
- Date: Mon, 9 Jul 2012 20:51:01 +0200
- Subject: Re: [RFA libiberty, gdb] Add hashtab support to filename_ncmp.c and use it in gdb.
- References: <20120709181015.2FCA41E13A1@ruffy2.mtv.corp.google.com>
On Mon, Jul 9, 2012 at 8:10 PM, Doug Evans <dje@google.com> wrote:
> Hi.
>
> filename_seen in gdb does a linear search, this patch changes it
> to use a hash table.
>
> Ok to check in?
Why not just use htab_hash_string? The file name canonicalization can
be put in gdb itself.
Ciao!
Steven