This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 0/6] Demangle minimal symbol names in worker threads
> From: Tom Tromey <tom@tromey.com>
> Cc: tom@tromey.com, gdb-patches@sourceware.org
> Date: Fri, 15 Mar 2019 17:40:54 -0600
>
> Could you see if thread-locals work?
> A simple program like:
>
> thread_local int x;
>
> ... should be enough to check, though maybe adding a main() and making
> sure it could link would also be good.
Yes, the simple program below compiles, runs, and returns zero status.
thread_local int x;
int main (void)
{
return x;
}