Printing thread_local a.k.a. __thread variables

Dmitry Antipov dantipov@nvidia.com
Mon Feb 12 13:30:00 GMT 2018


I just tried the recent git snapshot (on x86 GNU/Linux) and always seeing
100 for 'tlocal' variable. Compiled wit GCC 7.3, -O0 -g3, regardless of
-gdwarf-4 default or -gdwarf-5. Am I doing wrong something?

Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-thread.cc
Type: text/x-c++src
Size: 1194 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20180212/5cebdb8a/attachment.bin>


More information about the Gdb mailing list