From: Dmitry Antipov <dantipov@nvidia.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: GDB Development <gdb@sourceware.org>
Subject: Re: Printing thread_local a.k.a. __thread variables
Date: Mon, 12 Feb 2018 14:15:00 -0000 [thread overview]
Message-ID: <d771ca32-606c-8b27-8914-46a7e9d9cb48@nvidia.com> (raw)
In-Reply-To: <CAH=s-PP8rg3YxP1uO-PiXa1WJhM4+ks8Z3=TwKJuCmqUBdxULg@mail.gmail.com>
On 02/12/2018 05:02 PM, Yao Qi wrote:
> Because you are in thread 1, main thread, in which tlocal is not changed.
> If you switch to other threads, you'll see the right value of tlocal.
Argh. But this seems doesn't work for extended-remote target:
(gdb) thread apply all print tlocal
Thread 9 (Thread 10463.10471):
Cannot find thread-local storage for Thread 10463.10471, executable file target:/tmp/t-thread:
Remote target failed to process qGetTLSAddr request
(gdbserver side with '--remote-debug' agrees with the above):
getpkt ("qGetTLSAddr:p28df.28e7,0,7f963e8a7330"); [no ack sent]
putpkt ("$E01#a6"); [noack mode]
Is my gdbserver is mis(configured|compiled) and do something wrong with libthread_db?
Dmitry
next prev parent reply other threads:[~2018-02-12 14:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 13:30 Dmitry Antipov
2018-02-12 14:02 ` Yao Qi
2018-02-12 14:15 ` Dmitry Antipov [this message]
2018-02-12 14:54 ` Yao Qi
2018-02-13 7:55 ` Dmitry Antipov
2018-02-13 9:19 ` Yao Qi
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=d771ca32-606c-8b27-8914-46a7e9d9cb48@nvidia.com \
--to=dantipov@nvidia.com \
--cc=gdb@sourceware.org \
--cc=qiyaoltc@gmail.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