Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: "Vellemans, Noel" <Noel.Vellemans@visionbms.com>
Cc: gdb@sourceware.org, Paul Pluzhnikov <ppluzhnikov@google.com>
Subject: Re: Q: GDB - Threads
Date: Wed, 03 Jun 2009 03:17:00 -0000	[thread overview]
Message-ID: <daef60380906022017h437b2a85he2f63e106ecc0784@mail.gmail.com> (raw)
In-Reply-To: <8ac60eac0906021242p4d908056x18e42bbb7603a514@mail.gmail.com>

On Wed, Jun 3, 2009 at 03:42, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> On Tue, Jun 2, 2009 at 11:34 AM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
>
>> I guess then OP needs to verify that GDB is loading symbols from expected
>> libpthread ("set verbose on" should show that), and that gdbserver on target
>> is loading expected libthread_db ("ldd gdbserver" on target should show
>> that).
>
> Oh, and one very common mistake is to strip libpthread before it is uploaded
> to target. Make sure libpthread *on target* has not been stripped. In
> particular, it should have some local *_version symbol.
>

I remember in remote debug, libpthread striped or not is not very important.

Noel, you are use remote debug right? If so, I suggest:
1. Make sure you gdbserver in target link with libthread_db is OK.
You can check it with ldd.
2. Make sure you gdb in host use right lib.
Sometime, the host and target use different lib.  If so, you need copy
the lib in target to host, and then you can use command "set
solib-search-path" or "set sysroot" in gdb to let gdb load right lib.
And you need make sure libpthread that gdb load (in host) is not striped.

Thanks,
Hui


  reply	other threads:[~2009-06-03  3:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-26 16:02 Vellemans, Noel
2009-05-26 22:08 ` Hui Zhu
2009-06-02 15:27   ` Vellemans, Noel
2009-06-02 16:41     ` Paul Pluzhnikov
2009-06-02 18:17       ` Daniel Jacobowitz
2009-06-02 18:34         ` Paul Pluzhnikov
2009-06-02 19:34           ` Daniel Jacobowitz
2009-06-03 15:21             ` Vellemans, Noel
2009-06-02 19:42           ` Paul Pluzhnikov
2009-06-03  3:17             ` Hui Zhu [this message]
2009-06-03  9:26         ` Vellemans, Noel

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=daef60380906022017h437b2a85he2f63e106ecc0784@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=Noel.Vellemans@visionbms.com \
    --cc=gdb@sourceware.org \
    --cc=ppluzhnikov@google.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