From: teawater <teawater@gmail.com>
To: "N. van Bolhuis" <nvbolhuis@aimvalley.nl>
Cc: Paul Pluzhnikov <ppluzhnikov@google.com>, gdb@sourceware.org
Subject: Re: gdb doesn't show all threads, but gdbserver does
Date: Wed, 21 Jan 2009 00:05:00 -0000 [thread overview]
Message-ID: <daef60380901201605rdd389d2nb40ff60eb358c491@mail.gmail.com> (raw)
In-Reply-To: <49763F67.5010009@aimvalley.nl>
Really?
Why your gdbserver can be use? Is it static link?
On Wed, Jan 21, 2009 at 05:17, N. van Bolhuis <nvbolhuis@aimvalley.nl> wrote:
> Paul Pluzhnikov wrote:
>>
>> On Tue, Jan 20, 2009 at 12:17 PM, N. van Bolhuis <nvbolhuis@aimvalley.nl>
>> wrote:
>>
>>> In fact I did just that. I didn't mention it since it's there
>>> (libthread_db.so.1 is loaded into gdb) so this is not the issue.
>>
>> Hmm, I wonder if the "stripped libpthread.so.0" struck again.
>>
>> Could you please do 'ldd /mnt/norbert/mainctrl.exe' on target,
>> note which libpthread.so.0 it is using, and then
>>
>> nm /path/to/libpthread.so.0 | egrep '_version|pthread_threads_events'
>>
>> If this shows 'no symbols', you have stripped libpthread.so.0 on
>> target (but not on host). Don't do that. Do "strip --strip-debug"
>> instead.
>>
>
> aha, that must be it. I did (fully) strip all libraries on target.
>
> yes if I do "strip --strip-debug" it works.
>
> thanks a lot!
>
> I did not realize gdb needs libpthread debug symbols to "discover"
> threads.
> Hmm, if I think about it I still not fully understand why.
> Anyway it work now and I'm happy.
>
>
>
next prev parent reply other threads:[~2009-01-21 0:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-19 21:09 N. van Bolhuis
2009-01-20 0:21 ` teawater
2009-01-20 7:28 ` Norbert van Bolhuis
2009-01-20 18:37 ` Paul Pluzhnikov
2009-01-20 20:18 ` N. van Bolhuis
2009-01-20 20:36 ` Paul Pluzhnikov
2009-01-20 21:17 ` N. van Bolhuis
2009-01-20 22:24 ` Andreas Schwab
2009-01-20 22:45 ` Paul Pluzhnikov
2009-01-21 0:10 ` teawater
2009-01-21 10:32 ` Norbert van Bolhuis
2009-01-21 11:24 ` teawater
2009-01-21 13:45 ` teawater
2009-01-21 16:41 ` Paul Pluzhnikov
2009-02-12 3:08 ` teawater
2009-02-12 3:08 ` teawater
2009-01-21 0:05 ` teawater [this message]
2009-01-21 0:14 ` Paul Pluzhnikov
2009-01-21 0:26 ` teawater
2009-01-21 2:35 ` teawater
2009-01-21 4:16 ` Daniel Jacobowitz
2009-01-21 7:14 ` teawater
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=daef60380901201605rdd389d2nb40ff60eb358c491@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb@sourceware.org \
--cc=nvbolhuis@aimvalley.nl \
--cc=ppluzhnikov@google.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