This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug varobj/18564] regression in showing __thread so extern variable


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]