[Issue 4181] GDB prints wrong value of TLS variables

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 8 16:04:45 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=4181

--- Comment #15 from Martin Krejcirik <mk at krej.cz> ---
Note: if, with the above pull, you experience high tls offset like this:

(gdb) p _D4test1xi
Cannot access memory at address 0x7ffff8434e50
(gdb) info address _D4test1xi
Symbol "test.x()" is a thread-local variable at offset 0x45e6f0 in the
thread-local storage for `/home/dawg/Code/D/test'.

It may be caused by ld.gold linker during program build time. Use ld.bfd.

--


More information about the Digitalmars-d-bugs mailing list