Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Mudeem Siddiqui" <mudeem@quartics.com>
To: "Michael Snyder" <msnyder@specifix.com>
Cc: <gdb@sourceware.org>
Subject: RE: debugging multi threaded application
Date: Fri, 09 May 2008 20:05:00 -0000	[thread overview]
Message-ID: <87A697E50899F541B77272C331CEB744016ED43D@exchange.Q-DOMAIN> (raw)
In-Reply-To: <1210272356.4615.489.camel@localhost.localdomain>

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.




  reply	other threads:[~2008-05-09 20:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  1:16 Mudeem Siddiqui
2008-05-08  2:22 ` Daniel Jacobowitz
2008-05-08 18:46 ` Michael Snyder
2008-05-09 20:05   ` Mudeem Siddiqui [this message]
2008-05-10  1:45     ` Mudeem Siddiqui
2008-05-10  7:43       ` Andreas Schwab
2008-05-12 18:44         ` Mudeem Siddiqui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87A697E50899F541B77272C331CEB744016ED43D@exchange.Q-DOMAIN \
    --to=mudeem@quartics.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@specifix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox