This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: TLS access support in cross- Linux GDB
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Ananthakrishna Sowda \(asowda\)" <asowda at cisco dot com>
- Cc: "gdb\@sourceware.org" <gdb at sourceware dot org>
- Date: Thu, 01 Jun 2017 08:09:34 +0200
- Subject: Re: TLS access support in cross- Linux GDB
- Authentication-results: sourceware.org; auth=none
- References: <B28F3024-1CB9-436F-B613-CEA3313519E3@cisco.com>
* Ananthakrishna Sowda:
> TLS (thread-local storage) variable access in a core file is not
> supported for cross-Linux GDB. Any attempt to print a _thread
> variable from a cross-target core file will result in following error:
> "Cannot find thread-local variables on this target"
>
> Pedro Alves in his closing remarks on – Bug 8210 “Linux core files
> should use linux-thread-db.c” gave rationale for this limitation.
> https://sourceware.org/bugzilla/show_bug.cgi?id=8210
>
> We have implemented a patch in GDB which enables TLS access for core
> files for cross-Linux builds. The approach taken is to copy some code
> from glibc/nptl and build it as part of multi-arch GDB.
Gary Benson is working on this, too:
<https://infinitynotes.org/wiki/Infinity>