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@cygnus.com> writes:
> > /* Get address of thread local variable. */
> > extern td_err_e td_thr_tls_get_addr (const td_thrhandle_t *__th,
> > struct link_map *__map, size_t __offset,
> > void **__address);
> > This takes a thread handle, an entry from the dynamic linker's link
> > map, and an offset, and sets *__address to point to the base of that
> > thread and module's thread-local storage, plus the offset. It returns
> > an error code if the space hasn't been allocated yet.
>
> What does GDB do if there isn't [yet] any allocated local storage?
It returns TD_NOTALLOC.