This is the mail archive of the gdb@sourceware.cygnus.com 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]

Re: problems with gdb


>>>>> "Chris" == Chris Blizzard <blizzard@redhat.com> writes:

Chris>  70.98     19.47    19.47    11954     1.63     2.25  lookup_minimal_symbol
Chris>  27.12     26.91     7.44 33240213     0.00     0.00  strcmp_iw

Chris> I'm sorry, is that looking over a linked list?
Chris> SYMBOL_MATCHES_NAME() is a macro that does some mangling magic
Chris> so we can't use a standard hash lookup table but there has to
Chris> be something we can do to speed that up.

I sent a patch that hugely speeds up lookup_minimal_symbol to
gdb-patches in November.  Give it a try.  My patch works by keeping
two hash tables, one of which is used to deal with the mangling
problem.

The patch has never been checked into the main line of gdb, but it is
"known" to be safe -- no test suite regressions from a gdb using it.
Maybe it will go in someday.

Tom

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