From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28868 invoked by alias); 2 Jul 2007 00:04:33 -0000 Received: (qmail 28858 invoked by uid 22791); 2 Jul 2007 00:04:32 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Jul 2007 00:04:30 +0000 Received: from kahikatea.snap.net.nz (114.62.255.123.dynamic.snap.net.nz [123.255.62.114]) by viper.snap.net.nz (Postfix) with ESMTP id 9BC1E3D93C0; Mon, 2 Jul 2007 12:04:26 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 717C48FBF6; Mon, 2 Jul 2007 12:04:24 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18056.16647.432000.944702@kahikatea.snap.net.nz> Date: Mon, 02 Jul 2007 00:04:00 -0000 To: Arne Steinarson Cc: gdb@sourceware.org Subject: Re: Performance, stepping into source for shared libs In-Reply-To: <168749.90326.qm@web25413.mail.ukl.yahoo.com> References: <168749.90326.qm@web25413.mail.ukl.yahoo.com> X-Mailer: VM 7.19 under Emacs 22.1.50.9 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00005.txt.bz2 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