This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Q] loading a shared library at a gdb breakpoint


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]