This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: debugging multi threaded application


Here is how I configure gdb and gdbserver

Cross-Target binaries are compiled as

./configure --prefix=/home/mudeem/usr/gdb/cross
--target=mipsel-linux-uclibc --enable-threads --enable-shared
--disable-werror
make
make install

Target-native binaries are compiled as

export CC=mipsel-linux-uclibc-gcc
export RANLIB=mipsel-linux-uclibc-ranlib
export LDFLAGS="-L/home/mudeem/usr/cross/termcap/lib"
export CPPFLAGS="-I/home/mudeem/QV140X/LINUX/KERNEL/linux-2.4.25/include
-I/home/mudeem/usr/cross/termcap/include"
export CFLAGS="-I/home/mudeem/QV140X/LINUX/KERNEL/linux-2.4.25/include"
./configure --prefix=/home/mudeem/usr/gdb/native
--host=mipsel-linux-uclibc --target=mipsel-linux-uclibc --enable-threads
--enable-shared
make
make install

The tools version are

gdb version 			6.8 
mipsel-linux-uclibc-gcc		3.2.2
Kernel Version target		2.4.25

Kernel version host		2.4.21	
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 

-----Original Message-----
From: Michael Snyder [mailto:msnyder@specifix.com] 
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,
>  
> I am trying to debug a multithreaded application using gdbserver and 
> 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 
> libthread_db library". and when I conenct the debugger to remote 
> target I get
>  
> [New Thread 127]
> 0x00000000 in ?? ()
> 
> I am also not able to get any info using info threads. I have set 
> LD_LIBRARY_PATH. I have also tried giving the path of the libthread_db

> at the host gdb
>  
> set solib-search-path ../../root/lib
> set solib-absolute-prefix ../../root/lib
> 
> Any pointers what I might be missing. 

We need to know more about your host and target machines, operating
systems, and how gdb and gdbserver were configured.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]