Fix PR/18564 - regression in showing __thread so extern variable
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 15 Sep 2015 19:02:15 +0000 (21:02 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 15 Sep 2015 19:12:39 +0000 (21:12 +0200)
commit5382cfab6110741b8ba36965b30334c00d8f9409
tree957171c8f248954789ffbd0ec8539e3bef008d48
parente68fa6f07666ec4726cfef59f641a81244cc2e00
Fix PR/18564 - regression in showing __thread so extern variable

Ensure tls variable address is not relocated, as the msym addr
is an offset in the thread local storage of the shared library/object.
gdb/ChangeLog
gdb/findvar.c
gdb/printcmd.c
gdb/symtab.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/tls-so_extern.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/tls-so_extern.exp [new file with mode: 0644]
gdb/testsuite/gdb.threads/tls-so_extern_main.c [new file with mode: 0644]