From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3808 invoked by alias); 2 Jan 2007 19:48:19 -0000 Received: (qmail 3794 invoked by uid 22791); 2 Jan 2007 19:48:18 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Jan 2007 19:48:10 +0000 Received: (qmail 32582 invoked from network); 2 Jan 2007 19:48:09 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Jan 2007 19:48:09 -0000 To: gdb@sourceware.org Subject: Re: gdb very slow during 'step into' References: <20070102193049.GA19762@nevyn.them.org> From: Jim Blandy Date: Tue, 02 Jan 2007 19:48:00 -0000 In-Reply-To: <20070102193049.GA19762@nevyn.them.org> (Daniel Jacobowitz's message of "Tue, 2 Jan 2007 14:30:49 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-01/txt/msg00022.txt.bz2 Daniel Jacobowitz writes: > On Tue, Jan 02, 2007 at 11:30:16AM -0800, Jim Blandy wrote: >> If you set the environment variable LD_BIND_NOW to a non-empty value >> before running your program (use GDB's 'set env' command), does that >> eliminate the slow steps? > > Is this where we step through the dynamic linker? We really should > avoid that... I'm pretty sure we set a breakpoint at the function's true entry point (since we know it too), and wait for that to hit. I believe I made that change myself years ago. But maybe something broke.