Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sourceware.org
Subject: Re: Preloading dlopen symbols
Date: Thu, 21 Sep 2006 15:39:00 -0000	[thread overview]
Message-ID: <20060921153908.GA26559@nevyn.them.org> (raw)
In-Reply-To: <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


  reply	other threads:[~2006-09-21 15:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-21 15:36 Russell Shaw
2006-09-21 15:39 ` Daniel Jacobowitz [this message]
2006-09-21 15:49   ` Russell Shaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060921153908.GA26559@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=rjshaw@netspace.net.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox