Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Teresa Rivas <teresa.rivas@cadenux.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdb debugging threads help
Date: Fri, 18 Nov 2005 02:36:00 -0000	[thread overview]
Message-ID: <20051118023628.GA31581@nevyn.them.org> (raw)
In-Reply-To: <1132274170.32154.20.camel@localhost.localdomain>

On Thu, Nov 17, 2005 at 06:36:10PM -0600, Teresa Rivas wrote:
> on the target:
> # gdbserver :5234 simple

Is gdbserver linked to libthread_db?  Check the build log, or check the
gdbserver binary.

> (gdb) set solib-absolute-prefix /target/arm-linux/lib

That's probably not right.  The paths below solib-absolute-prefix
should match the target filesystem.  So if solib-absolute-prefix
is "/target/arm-linux", then the target /lib/ld-linux.so.2 should be in
/target/arm-linux/lib/ld-linux.so.2.

> (gdb) set solib-search-path /target/arm-linux/lib

You should not need to set that.

> (gdb) dir /target/arm-linux/lib

Or this.

> Source directories searched: /target/arm-linux/lib:$cdir:$cwd
> (gdb) set endian little
> The target is assumed to be little endian

Or this.

> (gdb) handle SIG32 nostop noprint pass
> Signal        Stop      Print   Pass to program Description
> SIG32         No        No      Yes             Real-time event 32

Don't do that; it never helps.

> (gdb) add-symbol-file simple
> add symbol table from file "simple" at
> (y or n) y
> Reading symbols
> from /home/trivas/dm320-appro/fs/examples/threads/simple...done.

Don't do this either.  Use "file simple", and do it before issuing the
"target remote" command.

> and if I try a info shared it says "No shared libraries loaded at this
> time"

Thread debugging will not work until this works.  It should show you
the list of libraries and say that they have symbols loaded (at main,
not when you first connect).

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  parent reply	other threads:[~2005-11-18  2:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18  0:35 Teresa Rivas
2005-11-18  1:19 ` Jim Blandy
2005-11-18  2:36 ` Daniel Jacobowitz [this message]
2005-11-18 14:30   ` Teresa Rivas
2005-11-18 14:38     ` Teresa Rivas
2005-11-18 15:28     ` Daniel Jacobowitz
2005-11-18 16:49       ` Teresa Rivas

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=20051118023628.GA31581@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=teresa.rivas@cadenux.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