« Return to Thread: [RFA libiberty, gdb] Add hashtab support to filename_ncmp.c and use it in gdb.

Re: [RFA libiberty, gdb] Add hashtab support to filename_ncmp.c and use it in gdb.

by Tom Tromey :: Rate this Message:

| View in Thread

>>>>> "Doug" == Doug Evans <dje@...> writes:

Doug> filename_seen in gdb does a linear search, this patch changes it
Doug> to use a hash table.

Doug> Ok to check in?

The gdb parts look good to me.

Doug> I couldn't think of a good reason to put filename_hash,filename_eq
Doug> in gdb, and I like placing them close to where hashtab.c and
Doug> filename_cmp are defined.  I also couldn't think of a sufficient
Doug> reason to put them in a file by themselves.

FWIW, I agree.  I'd like to see this patch go in.

Tom

 « Return to Thread: [RFA libiberty, gdb] Add hashtab support to filename_ncmp.c and use it in gdb.