From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16141 invoked by alias); 17 Mar 2010 14:00:50 -0000 Received: (qmail 16122 invoked by uid 22791); 17 Mar 2010 14:00:49 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.telit.com (HELO smtp.telit.com) (88.37.127.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Mar 2010 14:00:40 +0000 Received: from urano.tmt.telital.com (urano.telital.com [172.21.1.104]) by smtp.telit.com (Symantec Brightmail Gateway) with SMTP id EF.D2.16621.480E0AB4; Wed, 17 Mar 2010 15:00:36 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: "Disabling thread support in gdbserver" problem Date: Wed, 17 Mar 2010 14:00:00 -0000 Message-ID: In-Reply-To: <201002251949.56189.yann.morin.1998@anciens.enib.fr> From: "Daniele Palmas" To: "Yann E. MORIN" , X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00070.txt.bz2 Yann, -----Original Message----- From: Yann E. MORIN [mailto:yann.morin.1998@anciens.enib.fr]=20 Sent: gioved=EC 25 febbraio 2010 19.50 To: crossgcc@sourceware.org Cc: Daniele Palmas Subject: Re: "Disabling thread support in gdbserver" problem > Daniele, All, > On Monday 08 February 2010 15:38:55 Daniele Palmas wrote: >> I'm using crosstool-NG 1.6.0 for building a glibc toolchain for my AT91S= AM9260 >> target (binutils 2.19.1, gcc 4.3.2, glibc 2.9).=20 >> Building the toolchain succeeded correctly, but analyzing the log I've f= ound >> the following lines:=20 [--SNIP--] >> [INFO ]=A0 Installing gdbserver >> [EXTRA]=A0=A0=A0 Configuring gdbserver >> [WARN ]=A0=A0=A0 configure: WARNING: Could not find libthread_db. >> [WARN ]=A0=A0=A0 configure: WARNING: Disabling thread support in gdbserv= er. [--SNIP--] >> Any hint? > Well, I was really sckeptical about this issue, and while I was trying > to solve it, I noticed that I do not have the issue! My gdbserver is > statically built, and properly finds the static version of libthread_db. > > If you manage to somehow understand why it fails on your side, I would be > glad to hear about it, so we can try and fix it. I've finally found some time for investigating the issue. The problem was t= hat the libthread_db.a library was not generated during glibc compiling. I've found this solution: http://sources.redhat.com/ml/gdb/2003-04/msg00230.html This is quite old, but it still works well. Now the scripts find the static version of the library and gdb correctly bu= ilds. Regards, Daniele -- For unsubscribe information see http://sourceware.org/lists.html#faq