From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7828 invoked by alias); 9 May 2008 20:05:18 -0000 Received: (qmail 7783 invoked by uid 22791); 9 May 2008 20:05:17 -0000 X-Spam-Check-By: sourceware.org Received: from mail.quartics.com (HELO mail.quartics.com) (66.162.39.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 May 2008 20:04:59 +0000 Received: from exchange.quartics.com ([192.168.168.9]) by mail.quartics.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 9 May 2008 13:04:57 -0700 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 multi threaded application Date: Fri, 09 May 2008 20:05:00 -0000 Message-ID: <87A697E50899F541B77272C331CEB744016ED43D@exchange.Q-DOMAIN> In-Reply-To: <1210272356.4615.489.camel@localhost.localdomain> References: <87A697E50899F541B77272C331CEB7440169E37F@exchange.Q-DOMAIN> <1210272356.4615.489.camel@localhost.localdomain> From: "Mudeem Siddiqui" To: "Michael Snyder" Cc: 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: 2008-05/txt/msg00082.txt.bz2 Here is how I configure gdb and gdbserver Cross-Target binaries are compiled as ./configure --prefix=3D/home/mudeem/usr/gdb/cross --target=3Dmipsel-linux-uclibc --enable-threads --enable-shared --disable-werror make make install Target-native binaries are compiled as export CC=3Dmipsel-linux-uclibc-gcc export RANLIB=3Dmipsel-linux-uclibc-ranlib export LDFLAGS=3D"-L/home/mudeem/usr/cross/termcap/lib" export CPPFLAGS=3D"-I/home/mudeem/QV140X/LINUX/KERNEL/linux-2.4.25/include -I/home/mudeem/usr/cross/termcap/include" export CFLAGS=3D"-I/home/mudeem/QV140X/LINUX/KERNEL/linux-2.4.25/include" ./configure --prefix=3D/home/mudeem/usr/gdb/native --host=3Dmipsel-linux-uclibc --target=3Dmipsel-linux-uclibc --enable-threads --enable-shared make make install The tools version are gdb version 6.8=20 mipsel-linux-uclibc-gcc 3.2.2 Kernel Version target 2.4.25 Kernel version host 2.4.21=09 gcc 3.2.3 Then I set solib-search-path in which I have libthread_db but I don't know if libthread_db is used or not. Another question should libthread_db be in the lib path while compiling gdb. Thanks Mudeem=20 -----Original Message----- From: Michael Snyder [mailto:msnyder@specifix.com]=20 Sent: Thursday, May 08, 2008 11:46 AM To: Mudeem Siddiqui Cc: gdb@sourceware.org Subject: Re: debugging multi threaded application On Wed, 2008-05-07 at 18:16 -0700, Mudeem Siddiqui wrote: > Hi, >=20=20 > I am trying to debug a multithreaded application using gdbserver and=20 > gdb. I crossed compiled gdb with --enable-threads option. When I start > the debugger on the host i don't get the print "Using host=20 > libthread_db library". and when I conenct the debugger to remote=20 > target I get >=20=20 > [New Thread 127] > 0x00000000 in ?? () >=20 > I am also not able to get any info using info threads. I have set=20 > LD_LIBRARY_PATH. I have also tried giving the path of the libthread_db > at the host gdb >=20=20 > set solib-search-path ../../root/lib > set solib-absolute-prefix ../../root/lib >=20 > Any pointers what I might be missing.=20 We need to know more about your host and target machines, operating systems, and how gdb and gdbserver were configured.