]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Set the worker thread name on Windows
authorTom Tromey <tromey@adacore.com>
Wed, 13 Apr 2022 14:12:52 +0000 (08:12 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 14 Apr 2022 18:12:34 +0000 (12:12 -0600)
commit1ea519ec192d68397d8b22f55072fc7ba0c5e36c
treeb00fe964d18737386ec359f2ca61fddb82fc143f
parent42a59714076cc14b1684ce822d3118835d4c6bbe
Set the worker thread name on Windows

This patch is a bit different from the rest of the series, in that it
is a change to gdb's behavior on the host.  It changes gdb's thread
pool to try to set the thread name on Windows, if SetThreadDescription
is available.

This is part of PR win32/29050.

This patch isn't likely to be useful to many people in the short term,
because the Windows port of the libstdc++ thread code is not upstream.
(AdaCore uses it, and sent it upstream, but it did not land, I don't
know why.)  However, if that patch does ever go in, or presumably if
you build using some other C++ runtime library, then this will be
useful.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29050
gdbsupport/thread-pool.cc