public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Andreas Westin <andwes-8@student.luth.se>
Cc: Elena Zannoni <ezannoni@redhat.com>, gdb@sources.redhat.com
Subject: Re: thread debugging problem
Date: Fri, 12 Sep 2003 14:30:00 -0000	[thread overview]
Message-ID: <20030912143019.GA24071@nevyn.them.org> (raw)
In-Reply-To: <1063350901.3f617275e4926@webmail.student.luth.se>

On Fri, Sep 12, 2003 at 09:15:01AM +0200, Andreas Westin wrote:
> >  > Hi,
> >  > 
> >  > I'm trying to debug a multithreaded program in linux, but I'm not
> > able 
> >  > to get any kind of thread info while running the program in gdb.
> >  > I've tested with gdb 5.3, 5.3.91 and cvs from yesterday (10th) not
> > any 
> >  > of them works.
> >  > info thread shows nothing and the program stops with signal 32 when a
> > 
> >  > new thread starts.
> >  > 
> > 
> > Hmmm, this usually indicates that there is no thread support
> > available.  Maybe the version of the Kernel you are using has some
> > missing pieces. How about glibc-kernheaders?
> > 
> > Do you get a message at gdb startu saying something about using
> > libthread_db?
> > 
> >  > I'm using Trustix 2.0 with gcc 3.3 and glibc 2.3.2.
> >  > 
> > 
> > Not sure what Trustix is.
> > But those versions seem roughly ok.
> > 
> > Can you post a gdb session?
> > 
> 
> This is the kernel installed.
> root@labb ~# uname -a
> Linux labb.mobilecity.nu 2.4.21-13trfirewall #1 Thu Jul 10 15:57:32 CEST 2003 
> i686 unknown unknown GNU/Linux
> 
> I have installed the glibc-devel rpms so the headers should be included.
> 
> Trustix is small firewall/gateway dist, http://www.trustix.net/
> 
> A sample gdb session, I do not see any message about libthread_db though.

Does trustix even ship /lib/libthread_db.so.1?  If not, thread
debugging won't work.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

  reply	other threads:[~2003-09-12 14:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-11 17:09 Andreas Westin
2003-09-11 17:13 ` Elena Zannoni
2003-09-12  7:18   ` Andreas Westin
2003-09-12 14:30     ` Daniel Jacobowitz [this message]
2003-09-12 14:49       ` Andreas Westin
2003-09-14 23:48         ` Andrew Cagney
2003-09-15 13:10           ` Andreas Westin
2003-09-15 14:36 Michael Elizabeth Chastain

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=20030912143019.GA24071@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=andwes-8@student.luth.se \
    --cc=ezannoni@redhat.com \
    --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).