public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Ajay Patel" <ajayp@kymasys.com>
To: Daniel Jacobowitz <drow@false.org>,Ajay Patel
	<ajayp@kymasys.com>,gdb@sources.redhat.com
Subject: Re: unable to debug statically linked program with linux threads
Date: Fri, 18 Mar 2005 23:53:00 -0000	[thread overview]
Message-ID: <1111189985.21599@horse.he.net> (raw)

I got gdb_6.3.orig.tar.gz and gdb_6.3-5.diff from debian.
Newer Gdb works on a statically linked binaries.

With the same gdb source/binaries I tried different
combination. Here is the summary.

For iX86 running FC3.
---------------------
Program with Linux threads & dynamic linking
   all thread related command works
Program with Linux threads static linking
   all thread related command works.

Program with NPTL & dynamic linking 
   all thread realted command works.
Program with NPTL & static linking
  It gives following erros and thread related command does not work

warning: Cannot initialize thread debugging library: unknown thread_db
error '22'
warning: Cannot initialize thread debugging library: unknown thread_db
error '22

With EMAC(PPC-G4) running YDL 4.0.
----------------------------------
With Linux threads static linking or dynamic linking
none of the thread related command work.

With NPTL static linking or dynamic linking 
none of the thread related command work. 

Thanks for your help.

Thanks
Ajay

 
> On Thu, Mar 17, 2005 at 03:59:12PM -0800, Ajay Patel wrote:
> > Daniel,
> > 
> > I checked out gdb from CVS head and applied this
> > "http://sourceware.org/ml/gdb-patches/2004-12/msg00240.html"
> > patch.
> > 
> > But still no thread commands.
> 
> I'm afraid you'll need the second patch referenced in that message; I
> haven't submitted it to gdb-patches yet - thought I had.  I will be
> doing that after this patch is approved, or you can try the Debian
> source package which includes the patch.
> 
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery, LLC
> 
> 


             reply	other threads:[~2005-03-18 23:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-18 23:53 Ajay Patel [this message]
2005-03-21  3:02 ` Gdb warning message when doing Remote debugging Yeo Siow Vic
2005-03-21  3:12   ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17 23:59 unable to debug statically linked program with linux threads Ajay Patel
2005-03-18  2:47 ` Daniel Jacobowitz
2005-03-17 22:07 Ajay Patel
2005-03-17 22:13 ` Daniel Jacobowitz
2005-03-17 22:19 ` Eric Desjardins

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=1111189985.21599@horse.he.net \
    --to=ajayp@kymasys.com \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).