From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20264 invoked by alias); 1 Jul 2007 23:34:10 -0000 Received: (qmail 20249 invoked by uid 22791); 1 Jul 2007 23:34:10 -0000 X-Spam-Check-By: sourceware.org Received: from web25413.mail.ukl.yahoo.com (HELO web25413.mail.ukl.yahoo.com) (217.146.176.231) by sourceware.org (qpsmtpd/0.31) with SMTP; Sun, 01 Jul 2007 23:34:08 +0000 Received: (qmail 90609 invoked by uid 60001); 1 Jul 2007 23:34:06 -0000 X-YMail-OSG: inbKIlAVM1lH1IuEGceMoGWl17OxUerCjCWu4egD Received: from [81.233.241.116] by web25413.mail.ukl.yahoo.com via HTTP; Mon, 02 Jul 2007 01:34:05 CEST Date: Sun, 01 Jul 2007 23:34:00 -0000 From: Arne Steinarson Subject: Performance, stepping into source for shared libs To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <168749.90326.qm@web25413.mail.ukl.yahoo.com> 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/msg00004.txt.bz2 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 is GDB up to during this time (it doesn't give any feedback)? Regards // ATS Låt vårkänslorna spira! Hitta din tvillingsjäl på Yahoo! Dejting: http://se.meetic.yahoo.net