Fix Issue 4181 - GDB prints wrong value of TLS variables