Bug 22381 - GDB can not read TLS from cross-target core files
Summary: GDB can not read TLS from cross-target core files
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: threads (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-01 14:43 UTC by djordje.todorovic@rt-rk.com
Modified: 2017-11-07 21:50 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2017-11-07 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description djordje.todorovic@rt-rk.com 2017-11-01 14:43:35 UTC
GDB loads native libthread_db that is only good for native debugging.

When GDB is configured to run on Linux x86_64 with MIPS target like this:
#  ./configure --target=mips-mti-linux-gnu

and when try to read value of TLS variable from MIPS cross-target core file this message would be printed out:

(gdb) p tls_variable
Cannot find thread-local storage for LWP 21808, executable file ...
Cannot find thread-local variables on this target


The same problem would occur with all supported cross-target architectures.