Re: GDB support for thread-local storage

Andrew Cagney
2002-06-21T22:59:49Z

> 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.

So, what does *GDB* do if there isn't [yet] any allocated local storage
(as identified by the above function returning TD_NOTALLOC)?

Andrew