From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17497 invoked by alias); 21 Sep 2006 15:49:35 -0000 Received: (qmail 17489 invoked by uid 22791); 21 Sep 2006 15:49:35 -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; Thu, 21 Sep 2006 15:49:33 +0000 Received: from [192.168.0.10] (220-253-0-45.VIC.netspace.net.au [220.253.0.45]) by mail.netspace.net.au (Postfix) with ESMTP id 98BE41700E0 for ; Fri, 22 Sep 2006 01:49:29 +1000 (EST) Message-ID: <4512B48D.3080508@netspace.net.au> Date: Thu, 21 Sep 2006 15:49: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: Preloading dlopen symbols References: <4512B18D.9040208@netspace.net.au> <20060921153908.GA26559@nevyn.them.org> In-Reply-To: <20060921153908.GA26559@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-09/txt/msg00123.txt.bz2 Daniel Jacobowitz wrote: > On Fri, Sep 22, 2006 at 01:36:45AM +1000, Russell Shaw wrote: > >>Hi, >>When i run a program that dlopens a library, i can only set a >>breakpoint in that library after it is loaded. When i restart >>the inferior, my breakpoints get disabled. >> >>How can i load all the modules to give the effect of one monolithic >>program so that i can set breakpoints anywhere at anytime and not >>have them disabled? > > You can't, but they should be re-enabled automatically when the module > is reloaded, and you should be able to set "pending" breakpoints on > modules that have not yet been loaded. Are you using a recent version > of GDB? Hi, I'm using 6.4.90-debian. I found that gdb asks whether to make the breakpoint pending, but DDD doesn't show that prompt.