Re: GDB support for thread-local storage

Jim Blandy
2002-06-27T04:57:02Z

Andrew Cagney <ac131313@ges.redhat.com> writes:
> > Doesn't libthread_db read `struct _pthread_descr_struct' from the
> > linuxthreads library in the inferior, rather than knowing the layout
> > itself? So it's actually the inferior's linuxthreads library that
> > describes its own structures' layout.
>
> The structure layout will have been compiled into libthread-db.a. It
> implicitly knows the layout itself.

I think you're wrong here. Could you show me the code?

(Not that the question is especially relevant to the discussion --- of
course it could do a simple checksum check.)