]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Ignore system_error in thread startup
authorTom Tromey <tromey@adacore.com>
Fri, 20 Nov 2020 15:22:46 +0000 (08:22 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 20 Nov 2020 15:22:46 +0000 (08:22 -0700)
commit14f62a099a0287c858ac7f4882e88736c11ed1cc
tree4fd1595ed9c281e91572785ba651dd85430dd0eb
parent9d37f01307db492370a260e3ef9aee10b363fec2
Ignore system_error in thread startup

libstdc++ might change so that it always implements std::thread, but
then have thread startup simply fail.  This is being discussed here:

https://gcc.gnu.org/pipermail/gcc-patches/2020-November/558736.html

This patch pre-emptively changes gdb to handle this scenario.  It
seemed fine to me to ignore all system errors at thread startup, so
that is what this does.

gdbsupport/ChangeLog
2020-11-20  Tom Tromey  <tromey@adacore.com>

* thread-pool.cc (thread_pool::set_thread_count): Ignore system
errors.
gdbsupport/ChangeLog
gdbsupport/thread-pool.cc