gdb doesn't show all threads, but gdbserver does
teawater
teawater@gmail.com
Thu Feb 12 03:08:00 GMT 2009
I make a patch to output a warning.
http://sourceware.org/ml/gdb-patches/2009-02/msg00234.html
Thanks,
Hui
On Wed, Jan 21, 2009 at 06:45, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> On Tue, Jan 20, 2009 at 2:24 PM, Andreas Schwab <schwab@suse.de> wrote:
>
>> It's actually libthread_db that needs a non-global symbol from
>> libpthread.
>
> IOW, it's a glibc feature :)
>
> Stripping libpthread appears to be a very common mistake:
>
> - we've seen it twice on this list in the last two weeks,
> - I made it myself 4 weeks ago, even though I *knew* that libpthread
> must not be stripped.
>
> I wonder if we should warn glibc users? Something like:
>
> Warning: your /lib64/libpthread.so.0 has been stripped.
> GDB will not see other threads, and multithreaded debugging will
> be unreliable.
> See http://sourceware.org/gdb/wiki/... for further info.
>
> --
> Paul Pluzhnikov
>
More information about the Gdb
mailing list