Re: [RFC][Patch] Fix gdb failure to access tls data for parent thread

Daniel Jacobowitz
2009-02-04T13:29:00Z

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