This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB support for thread-local storage
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.)