This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Tue, Feb 13, 2018 at 7:55 AM, Dmitry Antipov <dantipov@nvidia.com> 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 (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]