From: Daniel Jacobowitz <drow@mvista.com>
To: John Utz <Johnut01@noa.nintendo.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdbserver coredumps,what is the *right* libthread_db.so for gdbserver on a given platform?
Date: Fri, 23 Jan 2004 22:50:00 -0000 [thread overview]
Message-ID: <20040123225024.GA8937@nevyn.them.org> (raw)
In-Reply-To: <s0112c91.027@smtpgw1.nintendo.com>
On Fri, Jan 23, 2004 at 02:15:28PM -0800, John Utz wrote:
> > Strace gdb if necessary to see what it finds.
>
> that was interesting, and supports your argument, note that it's
> loading the host thread_db, and the correct target libpthread.so.0
>
> [johnut01@gbcxdev johnut01]$ grep thread stracegdb.txt
> open("/lib/tls/libthread_db.so.1", O_RDONLY) = 3
> open("/home/johnut01/GBCX/crosstool-0.25/result/i486-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.5/i486-unknown-linux-gnu/lib/libpthread.so.0",
> O_RDONLY) = 8
> stat64("/home/johnut01/GBCX/crosstool-0.25/result/i486-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.5/i486-unknown-linux-gnu/lib/libpthread.so.0",
> {st_mode=S_IFREG|0755, st_size=464868, ...}) = 0
> open("/home/johnut01/GBCX/crosstool-0.25/result/i486-unknown-linux-gnu/gcc-2.95.3-glibc-2.2.5/i486-unknown-linux-gnu/lib/libpthread.so.0",
> O_RDONLY) = 11
>
> it doesnt appear to me that solib-absolute-prefix has anything to do
> with what libthread_db gdb loads, and from what little i understand
> about sharedlibs under linux, it's not *supposed* to.
>
> as i understand it the solib* variables manage the 'internal universe'
> of gdb and by implication, gdbserver.
>
> but which sharedlibs the linker chooses to use to resolve gbd's needs
> from the 'external universe' isnt manageable from inside of gdb...this
> looks like a job for LD_LIBRARY_PATH ( boo, hiss! )????
Sorry, I misspoke, it doesn't matter what libthread_db the client uses.
My concern was actually that it loads the correct libpthread.so.
If it's still segfaulting you've found a new or unique problem. You'll
have to figure out what gdbserver is doing :)
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next parent reply other threads:[~2004-01-23 22:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <s0112c91.027@smtpgw1.nintendo.com>
2004-01-23 22:50 ` Daniel Jacobowitz [this message]
[not found] <s0118e76.054@smtpgw1.nintendo.com>
2004-01-24 14:42 ` Daniel Jacobowitz
2004-01-24 5:13 John Utz
-- strict thread matches above, loose matches on Subject: below --
2004-01-23 22:15 John Utz
2004-01-23 20:42 John Utz
2004-01-23 20:48 ` Daniel Jacobowitz
2004-01-23 20:32 John Utz
2004-01-23 20:34 ` Daniel Jacobowitz
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=20040123225024.GA8937@nevyn.them.org \
--to=drow@mvista.com \
--cc=Johnut01@noa.nintendo.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