This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][Patch] Fix gdb failure to access tls data for parent thread
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vinay Sridhar <vinay at linux dot vnet dot ibm dot com>
- Cc: gdb-patches at sourceware dot org, luisgpm at linux dot vnet dot ibm dot com
- Date: Wed, 4 Feb 2009 08:28:51 -0500
- Subject: Re: [RFC][Patch] Fix gdb failure to access tls data for parent thread
- References: <200901091416.10563.vinay@linux.vnet.ibm.com>
On Fri, Jan 09, 2009 at 02:16:09PM +0530, Vinay Sridhar wrote:
> The reason for this is gdb does not fill in the private field of the
> thread_info structure of the parent thread. The below patch sets up
> this private field before the child threads are added to gdb's list.
The private info is set in attach_thread. That is supposed to be
called for every thread; how did you get a thread on the thread list
that did not have this routine called? A breakpoint on add_thread
and add_thread_with_info will probably figure this out.
--
Daniel Jacobowitz
CodeSourcery