From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13402 invoked by alias); 21 Jan 2009 02:35:19 -0000 Received: (qmail 13394 invoked by uid 22791); 21 Jan 2009 02:35:19 -0000 X-SWARE-Spam-Status: No, hits=-1.7 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.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Jan 2009 02:35:15 +0000 Received: by ti-out-0910.google.com with SMTP id d10so2763427tib.12 for ; Tue, 20 Jan 2009 18:35:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.2.2 with SMTP id 2mr28159tib.17.1232505313015; Tue, 20 Jan 2009 18:35:13 -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> <8ac60eac0901201614o57f3fea8x7cfe84e7c4b4f312@mail.gmail.com> Date: Wed, 21 Jan 2009 02:35:00 -0000 Message-ID: Subject: Re: gdb doesn't show all threads, but gdbserver does From: teawater To: Paul Pluzhnikov Cc: "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-01/txt/msg00130.txt.bz2 This part of code in gdb/gdbserver/thread-db.c:thread_db_init. On Wed, Jan 21, 2009 at 08:25, teawater wrote: > I think gdbserver need non-strip libpthread too. I met this issue in before. > So it make me confused. :) > > On Wed, Jan 21, 2009 at 08:14, Paul Pluzhnikov wrote: >> On Tue, Jan 20, 2009 at 4:05 PM, teawater wrote: >>> Really? >>> Why your gdbserver can be use? Is it static link? >> >> I think it works for OP because with gdbserver, the host GDB is >> doing symbol lookups, and the copy of target libpthread which host >> GDB uses has not been stripped. >> >> Cheers, >> -- >> Paul Pluzhnikov >> >