This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [Q] loading a shared library at a gdb breakpoint
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 3 Dec 2003 13:57:25 -0500
- Subject: Re: [Q] loading a shared library at a gdb breakpoint
- References: <20031203184820.GC28869@java.zko.dec.com>
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