From: Carmelo Amoroso <carmelo73@gmail.com>
To: Carmelo Amoroso <carmelo73@gmail.com>, gdb@sourceware.org
Subject: Re: howto debug libthread_db
Date: Tue, 26 Sep 2006 14:24:00 -0000 [thread overview]
Message-ID: <45193870.2030609@gmail.com> (raw)
In-Reply-To: <20060926140724.GA13188@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Tue, Sep 26, 2006 at 04:06:57PM +0200, Carmelo Amoroso wrote:
>> Hi All,
>> I'm trying to debug a simple multithread application on a remote target,
>> and I like to debug the libthread_db itself... is it possible to do it?
>> is it possible to set some breakpoints and stepping through?
>> Is there anyone already played with it?
>>
>> I tried to use symbol-file to gdb client, and I successfully added a
>> breakpoint, but I cannot reach it after I connected to the target and
>> issued 'continue'.
>>
>> Any help will be appreciated
>
> Sorry, but you need to be more precise. What exactly did you do - the
> entire GDB session? What didn't work? Do you really mean
> libthread_db, or do you mean libpthread?
>
Yes, libthread_db exactly... I got a SIGSEV due to a unaligned access
just after exiting from td_ta_map_lwp2thr function, and I never return
to the caller (iterate_thread_list).
I added a lot of printf into my own libthread_db and I can track all the
flow until the end td_ta_map_lwp2thr... and then nothing
The thread_db library belongs to the uClibc-nptl port on SH.
gdbserver has been linked against uClibc-nptl port and works
fine for non multithread example
Carmelo
next prev parent reply other threads:[~2006-09-26 14:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 14:05 Carmelo Amoroso
2006-09-26 14:07 ` Daniel Jacobowitz
2006-09-26 14:24 ` Carmelo Amoroso [this message]
2006-09-26 18:20 ` Michael Snyder
2006-09-26 22:26 ` Andreas Schwab
2006-09-27 6:21 ` Carmelo Amoroso
2006-09-27 18:11 ` Michael Snyder
2006-09-27 6:21 ` Carmelo Amoroso
2006-09-27 18:15 ` Michael Snyder
2006-09-27 21:02 ` Carmelo Amoroso
2006-09-29 9:08 ` Carmelo Amoroso
2006-09-29 18:12 ` Michael Snyder
2006-09-30 16:46 ` Carmelo Amoroso
2006-10-02 18:07 ` Michael Snyder
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=45193870.2030609@gmail.com \
--to=carmelo73@gmail.com \
--cc=gdb@sourceware.org \
/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