Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Preloading dlopen symbols
@ 2006-09-21 15:36 Russell Shaw
  2006-09-21 15:39 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Russell Shaw @ 2006-09-21 15:36 UTC (permalink / raw)
  To: gdb

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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Preloading dlopen symbols
  2006-09-21 15:36 Preloading dlopen symbols Russell Shaw
@ 2006-09-21 15:39 ` Daniel Jacobowitz
  2006-09-21 15:49   ` Russell Shaw
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-09-21 15:39 UTC (permalink / raw)
  To: Russell Shaw; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Preloading dlopen symbols
  2006-09-21 15:39 ` Daniel Jacobowitz
@ 2006-09-21 15:49   ` Russell Shaw
  0 siblings, 0 replies; 3+ messages in thread
From: Russell Shaw @ 2006-09-21 15:49 UTC (permalink / raw)
  Cc: gdb

Daniel Jacobowitz wrote:
> 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?

Hi,
I'm using 6.4.90-debian.

I found that gdb asks whether to make the breakpoint pending, but DDD
doesn't show that prompt.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-21 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-21 15:36 Preloading dlopen symbols Russell Shaw
2006-09-21 15:39 ` Daniel Jacobowitz
2006-09-21 15:49   ` Russell Shaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox