From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7417 invoked by alias); 15 May 2007 18:42:05 -0000 Received: (qmail 7409 invoked by uid 22791); 15 May 2007 18:42:04 -0000 X-Spam-Check-By: sourceware.org Received: from mlbe2k1.cs.myharris.net (HELO mlbe2k1.cs.myharris.net) (137.237.90.88) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 May 2007 18:41:57 +0000 Received: from mail pickup service by mlbe2k1.cs.myharris.net with Microsoft SMTPSVC; Tue, 15 May 2007 14:41:46 -0400 Received: from mlbe2k4.cs.myharris.net ([192.107.153.232]) by mlbe2k1.cs.myharris.net with Microsoft SMTPSVC(6.0.3790.1830); Tue, 15 May 2007 14:41:45 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Debugging pthread in ARM. Date: Tue, 15 May 2007 18:42:00 -0000 Message-ID: <6E19E11D3D7A5F4D937E5C2721FC310D059B8CAF@mlbe2k4.cs.myharris.net> In-Reply-To: <1179233344.1389.18.camel@DAFPC5206.ikusi.net> References: <1179233344.1389.18.camel@DAFPC5206.ikusi.net> From: "Williams, Allen" To: 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: 2007-05/txt/msg00054.txt.bz2 I am getting multiple copies of these emails. Am I the only one on the list this is happening to? This is about the sixth copy of this one that I've received, and I've received multiple copies of others, too. -----Original Message----- From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of gomrioje Sent: Tuesday, May 15, 2007 8:49 AM To: gdb@sourceware.org Subject: Debugging pthread in ARM. I am not able to see the point of Daniel (mea culpa). I have readen documentation as recommended by Daniel and William. Maybe trying again... The application uses: pthread_create. For that I am using as library (-lpthread): libpthread.so.0->libpthread-0.10.so For debugging purposes, I am using gdbserver in the target (AT91RM9200). gdbserver must use library: libthread_db.so.1->libthread_db-1.0.so Now I describe the problem: 1. When I set a breakpoint inside a thread code, I get a SIGTRAP. 2. After creating several threads (POSIX: pthread_create), command: info threads, result in: 1 main............... 3. Sometimes after running a while, I get a message in the gdbserver console: Gdb: error initalizing thread_db library: version mismatch between libthread_db and libpthread Both of the libraries come from the same Debian distribution, for ARM architecture.=20 Daniel mentions problem pointing to libraries. For such situation, the config is: - For the gdbserver: export LD_LIBRARY_PATH=3D/lib:/usr/lib/:/app/arm/debug/:$LD_LIBRARY_PATH - For the gdb (host): set solib-absolute-prefix /dev/null/ set solib-search-path /app/arm/debug/:/app/arm/bitbaketmp/staging/arm-linux/lib/ I could miss something. Some ideas ? Regards, > Thanks for the link. > But I guess my problem is not described there. > I have another message: > Gdb: error initalizing thread_db library: version mismatch between libthread_db and libpthread >=20 > I have read in the mailing list that both should have the same glibc. > (what do you mean there?). >=20 > In another hand, I am already pointing solib-absolute-prefix to the directory libraries. If you're doing that, and getting the above error, then you are not pointing to the correct libraries. --=20 Jesus Gomez Rio R&D Technician Design & Manufacturing Division gomez.j@ikusi.com www.ikusi.es ---