This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug varobj/18564] regression in showing __thread so extern variable
- From: "philippe.waroquiers at skynet dot be" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 26 Aug 2015 22:25:21 +0000
- Subject: [Bug varobj/18564] regression in showing __thread so extern variable
- Auto-submitted: auto-generated
- References: <bug-18564-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18564
--- Comment #5 from philippe.waroquiers at skynet dot be ---
(In reply to Mark Wielaard from comment #3)
> + addr = target_translate_tls_address (objfile, addr - offset);
Assuming this is the good fix, then a similar fix is probably needed in
printcmd.c, to show the offset in the tls storage.
Also, maybe an alternative solution might be to use
MSYMBOL_VALUE_RAW_ADDRESS(symbol) for tls variables,
rather than MSYMBOL_VALUE_ADDRESS or BMSYMBOL_VALUE_ADDRESS
(so as to avoid adding relocation to later substract it).
In symtab.h, there is also no indication in the comment that LOC_UNRESOLVED
is used for thread variables/tls storage.
--
You are receiving this mail because:
You are on the CC list for the bug.