From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3982 invoked by alias); 3 Dec 2003 18:57:27 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3960 invoked from network); 3 Dec 2003 18:57:26 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 3 Dec 2003 18:57:26 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1ARcBh-0000gg-Qr for ; Wed, 03 Dec 2003 13:57:25 -0500 Date: Wed, 03 Dec 2003 18:57:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: [Q] loading a shared library at a gdb breakpoint Message-ID: <20031203185725.GA29304@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20031203184820.GC28869@java.zko.dec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031203184820.GC28869@java.zko.dec.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00055.txt.bz2 On Wed, Dec 03, 2003 at 01:48:20PM -0500, Bharadwaj Yadavalli wrote: > Hi, > > How can I do the following at a breakpoint in gdb (on Linux)? > > - load a shared library (say libfoo.so) into the process > memory; libfoo.so is not loaded by the running > application being debugged. Try calling dlopen in the inferior. If dlopen isn't linked in then you're out of luck. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer