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?