This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: very very slow symbol searches
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: "Martin M. Hunt" <hunt at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 22 Jan 2003 10:07:10 -0500
- Subject: Re: very very slow symbol searches
- References: <1043236817.32119.7.camel@Dragon>
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
>
>
>