This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Performance, stepping into source for shared libs
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Arne Steinarson <asteinarson at yahoo dot se>
- Cc: gdb at sourceware dot org
- Date: Mon, 2 Jul 2007 12:04:23 +1200
- Subject: Re: Performance, stepping into source for shared libs
- References: <168749.90326.qm@web25413.mail.ukl.yahoo.com>
Arne Steinarson writes:
> I have a C++ app with just a small main.cpp. However
> it links into large libraries (GTK and framework on
> top of GTK, running i386 Linux).
>
> Most times when I open the app in GDB I will have
> quite a delay when stepping into a lower function the
> first time. CPU usage goes to 100% and it takes
> between 10 and 60 seconds before I can see the new
> source line. The next time stepping into the same
> function, it happens without delay.
>
> Stepping into a new function in another source file
> (possibly in the same directory as the last one) I
> again have the long delay.
>
> It seems to happen mostly with functions in shared
> libraries.
>
> First I thought it was the IDE (Eclipse) to blame. So
> I tried in GDB standalone, command line version. Same
> delay!
>
> Is there some way to reduce these waits?
What happens if you do
(gdb) set auto-solib-add off
first?
--
Nick http://www.inet.net.nz/~nickrob