This is the mail archive of the gdb@sources.redhat.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]
Other format: [Raw text]

Re: very very slow symbol searches


Martin M. Hunt writes:
 > Anyone have any idea why search_symbols in symtab.c is now a few
 > thousand times slower than it used to be?  At least it is on Linux x86.
 > 
 > Insight calls search_symbols twice on startup.  Sometime 2-4 weeks ago,
 > (builds from CVS on sources) Insight started taking a minute or two to
 > load when debugging itself.  It is very fast when debugging small
 > programs, but large things like insight or gdb take forever.  At first
 > glance the problem is that search_symbols() is taking 20-30 seconds to
 > return.

there have been some changes to that function on 12-23.  Could you try
backing those out? This was a change we convinced ourselves it was ok
to do, but maybe it is problematic.

Another change was to find_pc_sect_line, not sure if that would have
an impact.

Elena


 > 
 > Everything is fine on Windows which starts up much faster than Linux,
 > even before this latest slowness.
 > 
 > Martin
 > 
 > 
 > 


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