https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64001
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> --- On GNU/Linux gdb can usually print TLS variables fine. It knows how to look up the value for the current thread. Make sure you are using a sufficiently new version of gdb, although I think it's been supported for a few years now.