From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27034 invoked by alias); 12 Feb 2009 03:08:27 -0000 Received: (qmail 27025 invoked by uid 22791); 12 Feb 2009 03:08:27 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Feb 2009 03:08:22 +0000 Received: by ti-out-0910.google.com with SMTP id y8so248522tia.12 for ; Wed, 11 Feb 2009 19:08:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.90.9 with SMTP id n9mr480511tib.6.1234408102178; Wed, 11 Feb 2009 19:08:22 -0800 (PST) In-Reply-To: References: <4974EBFF.307@aimvalley.nl> <49757D1C.7010309@aimvalley.nl> <8ac60eac0901201037t71b6bd62j8668bd004e933f53@mail.gmail.com> <49763169.8070208@aimvalley.nl> <8ac60eac0901201236i2d3a266akaa673cd12a4ec7cb@mail.gmail.com> <49763F67.5010009@aimvalley.nl> <8ac60eac0901201445m4d85d30k5b5fc87783208a32@mail.gmail.com> Date: Thu, 12 Feb 2009 03:08:00 -0000 Message-ID: Subject: Re: gdb doesn't show all threads, but gdbserver does From: teawater To: Paul Pluzhnikov Cc: Andreas Schwab , "N. van Bolhuis" , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00099.txt.bz2 http://sourceware.org/ml/gdb-patches/2009-02/msg00232.html On Thu, Feb 12, 2009 at 11:07, teawater wrote: > 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 wrote: >> On Tue, Jan 20, 2009 at 2:24 PM, Andreas Schwab 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 >> >