GDB loads native libthread_db that is only good for native debugging. When GDB is configured to run on Linux x86_64 with MIPS target like this: # ./configure --target=mips-mti-linux-gnu and when try to read value of TLS variable from MIPS cross-target core file this message would be printed out: (gdb) p tls_variable Cannot find thread-local storage for LWP 21808, executable file ... Cannot find thread-local variables on this target The same problem would occur with all supported cross-target architectures.
See also: <https://sourceware.org/ml/gdb/2017-05/msg00012.html> <https://sourceware.org/ml/gdb/2017-06/msg00000.html> <https://sourceware.org/ml/gdb-patches/2017-06/msg00102.html> (and PR corefiles/8210).