From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22434 invoked by alias); 21 Oct 2006 05:20:41 -0000 Received: (qmail 22423 invoked by uid 22791); 21 Oct 2006 05:20:40 -0000 X-Spam-Check-By: sourceware.org Received: from cirrus.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.92) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 21 Oct 2006 05:20:38 +0000 Received: from [192.168.0.10] (220-253-28-230.VIC.netspace.net.au [220.253.28.230]) by mail.netspace.net.au (Postfix) with ESMTP id CF3A817009E for ; Sat, 21 Oct 2006 15:20:26 +1000 (EST) Message-ID: <4539AE10.4060307@netspace.net.au> Date: Sat, 21 Oct 2006 05:20:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1 MIME-Version: 1.0 CC: gdb@sourceware.org Subject: Re: Pending breakpoints References: <453993D7.3080704@netspace.net.au> <20061021051401.GB26818@nevyn.them.org> In-Reply-To: <20061021051401.GB26818@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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-10/txt/msg00171.txt.bz2 Daniel Jacobowitz wrote: > On Sat, Oct 21, 2006 at 01:28:23PM +1000, Russell Shaw wrote: > >>Hi, >>I'm debugging a project with dlopen-ed modules. >> >>In gdb, setting a breakpoint for an as-yet unloaded symbol >>makes gdb say: >> >> (gdb) b func_realize >> Function "func_realize" not defined. >> Make breakpoint pending on future shared library load? (y or [n]) y >> Breakpoint 1 (func_realize) pending. >> >>However, the dialog doesn't happen in DDD, making it useless. > > That's a problem with ddd, then; ask them. Meanwhile, set break > pending on may help, but who knows how badly that will confuse ddd. Hi, That worked ok. Now there's a bug in gdb (when run stand-alone). The dlopened module is loaded, the breakpoint symbol is resolved, but the program continues running instead of stopping at the breakpoint. I'll look into gdb source myself.