This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix debugging with destroyed TLS
- From: Pedro Alves <pedro at palves dot net>
- To: Andi Kleen <ak at linux dot intel dot com>, gdb-patches at gcc dot gnu dot org
- Date: Fri, 15 Apr 2016 10:50:31 +0100
- Subject: Re: [PATCH] Fix debugging with destroyed TLS
- Authentication-results: sourceware.org; auth=none
- References: <20160318211524 dot GA17830 at tassilo dot jf dot intel dot com>
On 03/18/2016 09:15 PM, Andi Kleen wrote:
>
> This is a fix for https://sourceware.org/bugzilla/show_bug.cgi?id=19684
>
> I have some code that overwrites FS on x86-64. This breaks debugging
> in gdb, because every operation tries to read the thread number,
> but fails because TLS is not available.
I think this should have an accompanying testcase. Can you cook one up?
It's likely that gdbserver will need fixing as well. (gdbserver/thread-db.c).