summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-03-15 17:38:06 -0600
committerTom Tromey <tom@tromey.com>2019-11-26 14:02:57 -0700
commit5e03027845ecc877621ea71bc342a30ecf2999ff (patch)
treed336c27969b6e4c6ca9d14be8becb15ed7d4cfa2 /gdb/gdbserver/ChangeLog
parent5a79c10755d00b71b33b8715e5a665bfd78c9222 (diff)
downloadbinutils-gdb-5e03027845ecc877621ea71bc342a30ecf2999ff.tar.gz
Add configure check for std::thread
This adds a configure check for std::thread. This is needed because std::thread is not available on some systems, like some versions of mingw and DJGPP. This also adds configury to make sure that a threaded gdb links against the correct threading library (-lpthread or the like), and passes the right flags (e.g., -pthread) to the compilations. Note that this also links gdbserver against the thread library. This is not strictly necessary at this point in the series, but a later patch will change gdbsupport to use pthread_sigmask, at which point this will be needed. gdb/ChangeLog 2019-11-26 Tom Tromey <tom@tromey.com> * acinclude.m4: Include ax_pthread.m4. * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables. (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS. (CLIBS): Use PTHREAD_LIBS. (aclocal_m4_deps): Add ax_pthread.m4. * config.in, configure: Rebuild. * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread. gdb/gdbserver/ChangeLog 2019-11-26 Tom Tromey <tom@tromey.com> * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables. (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS. (GDBSERVER_LIBS): Use PTHREAD_LIBS. * acinclude.m4: Include ax_pthread.m4. * config.in, configure: Rebuild. Change-Id: I00ec55db6077f2615421a93461fc3be57e916aa0
Diffstat (limited to 'gdb/gdbserver/ChangeLog')
-rw-r--r--gdb/gdbserver/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7b22cfd2f8c..eee4b818a25 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,11 @@
+2019-11-26 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
+ (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
+ (GDBSERVER_LIBS): Use PTHREAD_LIBS.
+ * acinclude.m4: Include ax_pthread.m4.
+ * config.in, configure: Rebuild.
+
2019-11-26 Christian Biesinger <cbiesinger@google.com>
* debug.c (debug_set_output): Call safe_strerror instead of