From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11493 invoked by alias); 21 Sep 2006 15:39:14 -0000 Received: (qmail 11485 invoked by uid 22791); 21 Sep 2006 15:39:14 -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, 21 Sep 2006 15:39:11 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GQQdo-0006vY-W0; Thu, 21 Sep 2006 11:39:09 -0400 Date: Thu, 21 Sep 2006 15:39:00 -0000 From: Daniel Jacobowitz To: Russell Shaw Cc: gdb@sourceware.org Subject: Re: Preloading dlopen symbols Message-ID: <20060921153908.GA26559@nevyn.them.org> Mail-Followup-To: Russell Shaw , gdb@sourceware.org References: <4512B18D.9040208@netspace.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4512B18D.9040208@netspace.net.au> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00122.txt.bz2 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? -- Daniel Jacobowitz CodeSourcery