From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10018 invoked by alias); 20 Jan 2009 00:21:49 -0000 Received: (qmail 10001 invoked by uid 22791); 20 Jan 2009 00:21:48 -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.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Jan 2009 00:21:44 +0000 Received: by ti-out-0910.google.com with SMTP id d10so2205285tib.12 for ; Mon, 19 Jan 2009 16:21:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.50.19 with SMTP id x19mr6144651tix.12.1232410901668; Mon, 19 Jan 2009 16:21:41 -0800 (PST) In-Reply-To: <4974EBFF.307@aimvalley.nl> References: <4974EBFF.307@aimvalley.nl> Date: Tue, 20 Jan 2009 00:21:00 -0000 Message-ID: Subject: Re: gdb doesn't show all threads, but gdbserver does From: teawater To: "N. van Bolhuis" Cc: 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/msg00108.txt.bz2 Both gdbserver and gdb use libthread_db. gdbserver link together with the lib. gdb dlopen the lib when it need it. So I think maybe gdb didn't find the lib or something else. Do you gdb have some error message? On Tue, Jan 20, 2009 at 05:09, N. van Bolhuis wrote: > > I built a gdb (v6.8) for powerpc to be executed on powerpc target > (This GDB was configured as "powerpc-e300c3-linux"...). > If I use this target gdb to debug my powerpc program and hit a > breakpoint "info threads" shows only one thread. > This is incorrect since there are 7 threads (cat /proc//status > shows 7 threads). > > If I debug the same program using gdbserver on target and gdb on a host=i686 (This GDB was configured as "--host=i686-linux > --target=powerpc-e300c3-linux"...) "info threads" shows the expected 7 > threads. > > How can this be ? > > (I noticed the target gdbserver needs libthread_db.so.1, the target gdb > does not. Maybe this is what's causing this). > > >