From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: gdb@sourceware.org
Subject: Re: How does solib handline shared library unloads?
Date: Tue, 01 Nov 2005 18:24:00 -0000 [thread overview]
Message-ID: <200511011824.jA1IOFOZ001619@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <20051101162437.GA29799@nevyn.them.org> (message from Daniel Jacobowitz on Tue, 1 Nov 2005 11:24:37 -0500)
> Date: Tue, 1 Nov 2005 11:24:37 -0500
> From: Daniel Jacobowitz <drow@false.org>
>
> On Tue, Nov 01, 2005 at 11:20:25AM -0500, Christopher Faylor wrote:
> > Cygwin sets TARGET_WAITKIND_LOADED when a DLL is loaded but I don't see
> > any corresponding TARGET_WAITKIND_UNLOADED. It doesn't look like
> > TARGET_WAITKIND_LOADED calls solib_add, though.
>
> Yes: those are (were) just used for catch, not for actual shared
> library list management. This is bogus; that's the part that ought to
> be fixed in core GDB.
Indeed, there's quite a bit old cruft in the shared library code.
HP-UX doesn't use TARGET_WAITKIND_LOADED anymore, but it seems it is
still used for AIX. That said, it defenitely is preferable to have
those events instead of overloading the breakpoint mechanism like
Linux does. Using shared library breakpoints means that core GDB
needs to figure out whether we stopped because of a shared library
event or a normal breakpoint. Chris, if your OS can tell you why it
stopped, you shouldn't throw away that information.
Mark
prev parent reply other threads:[~2005-11-01 18:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-01 5:39 Christopher Faylor
2005-11-01 6:59 ` Mark Kettenis
2005-11-01 13:45 ` Christopher Faylor
2005-11-01 13:51 ` Daniel Jacobowitz
2005-11-01 14:40 ` Christopher Faylor
2005-11-01 15:12 ` Daniel Jacobowitz
2005-11-01 16:20 ` Christopher Faylor
2005-11-01 16:24 ` Daniel Jacobowitz
2005-11-01 18:24 ` Mark Kettenis [this message]
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=200511011824.jA1IOFOZ001619@elgar.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=drow@false.org \
--cc=gdb@sourceware.org \
/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