GDB support for thread-local storage

Andrew Cagney
Fri Jun 21 15:04:00 GMT 2002

> /* 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?


More information about the Gdb mailing list