From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb@sources.redhat.com
Subject: Re: (linux/threads) Interesting side-effect of "auto-solib-add 0"
Date: Wed, 13 Sep 2006 00:33:00 -0000 [thread overview]
Message-ID: <20060913003347.GA24280@nevyn.them.org> (raw)
In-Reply-To: <20060913002712.GF24293@adacore.com>
On Tue, Sep 12, 2006 at 05:27:13PM -0700, Joel Brobecker wrote:
> It seems to me that we should be able to fix this by adding an observer
> of the `solib_loaded' event to replace the hook that linux-thread-db
> installed. I actually gave it a try, using the sources from CVS, and
> found out something surprising: Although the solib_loaded observer
> I just created gets called as expected, the linux thread layers does
> not detect that threads are in use:
You've missed the pertinent fact here. We're not waiting for
libpthread.so to be loaded just for kicks! The only way libthread_db
can operate is by querying back through GDB for the locations of
symbols in the thread library. If we don't load that objfile, then
it can't initialize.
> The only difference I can see between the two runs is that symbols
> are read in one case, and not read in the other case. Is libthread_db.so
> dependent on having the symbol table being loaded or something of that
> sort?
Yes. Don't load libpthread, won't get threads.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-09-13 0:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 0:27 Joel Brobecker
2006-09-13 0:33 ` Daniel Jacobowitz [this message]
2006-09-13 0:47 ` Joel Brobecker
2006-09-13 2:21 ` Daniel Jacobowitz
2006-09-13 3:45 ` Joel Brobecker
2006-09-13 3:47 ` Daniel Jacobowitz
2006-09-13 3:23 ` Eli Zaretskii
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=20060913003347.GA24280@nevyn.them.org \
--to=drow@false.org \
--cc=brobecker@adacore.com \
--cc=gdb@sources.redhat.com \
/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