From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16667 invoked by alias); 10 Aug 2006 20:40:33 -0000 Received: (qmail 16653 invoked by uid 22791); 10 Aug 2006 20:40:32 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 10 Aug 2006 20:40:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GBHKN-0008PJ-LL; Thu, 10 Aug 2006 16:40:27 -0400 Date: Thu, 10 Aug 2006 20:40:00 -0000 From: Daniel Jacobowitz To: Mike Frysinger Cc: gdb@sourceware.org, jzhang918@gmail.com Subject: Re: slow script execution when debugging large binaries Message-ID: <20060810204027.GA32182@nevyn.them.org> Mail-Followup-To: Mike Frysinger , gdb@sourceware.org, jzhang918@gmail.com References: <200608101633.08373.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608101633.08373.vapier@gentoo.org> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00089.txt.bz2 On Thu, Aug 10, 2006 at 04:33:07PM -0400, Mike Frysinger wrote: > i'm playing with kgdb and in the process have been learning/writing up little > code snippets to make debugging easier ... for example, a small function that > will dump the dmesg buffer in kgdb ... now, the issue at hand isnt kgdb :) Could you build a GDB which includes profiling data (I think it's --enable-profile, check gdb/configure.ac) and then use maint set profile to generate a profile data file for this? It'll tell you where the problem is - probably something is doing unnecessary symbol lookup. -- Daniel Jacobowitz CodeSourcery