This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Preloading dlopen symbols
- From: Daniel Jacobowitz <drow at false dot org>
- To: Russell Shaw <rjshaw at netspace dot net dot au>
- Cc: gdb at sourceware dot org
- Date: Thu, 21 Sep 2006 11:39:08 -0400
- Subject: Re: Preloading dlopen symbols
- References: <4512B18D.9040208@netspace.net.au>
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