Re: Printing thread_local a.k.a. __thread variables

Yao Qi <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAH=s-PMJS+ufYw8m5OxOiJJyBsmiVQZrj604DYJRph-e8gKwyw@mail.gmail.com>
On Tue, Feb 13, 2018 at 7:55 AM, Dmitry Antipov <[email protected]> wrote:
> On 02/12/2018 05:54 PM, Yao Qi wrote:
>
>> ... is it broken in every threads in "thread apply all" or just in some
>> threads?  Can you reproduce it every time or it is intermittent?
>> If you manually switch threads via command "thread N", can
>> you examine 'tlocal'?
>
>
> It seems that 'qGetTLSAddr' fails every time for any thread in question:
>

It works for me with GDBserver.  You can debug gdbserver to see why
qGetTLSAddr is not handled properly.  The related function is
thread-db.c:thread_db_get_tls_address.

-- 
Yao (齐尧)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.