D-Programming-Language/dmd — pull request #4053 by tramker (2014-10-07 23:27:58+00:00)
Title: Fix Issue 4181 - GDB prints wrong value of TLS variables

Add DW_OP_GNU_push_tls_address to dwarf debug info for tls vars and also offset to address in append_addr() which fixes shared global vars.

I'm novice in dmd and dwarf hacking, so please review thoroughly.

Works for me on linux x86 and x86_64, dmd 2.066 and master, gdb 7.8.50.