aboutsummaryrefslogtreecommitdiff
path: root/gdb/config.in
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/config.in
parent5a79c10755d00b71b33b8715e5a665bfd78c9222 (diff)
downloadgdb-5e03027845ecc877621ea71bc342a30ecf2999ff.zip
gdb-5e03027845ecc877621ea71bc342a30ecf2999ff.tar.gz
gdb-5e03027845ecc877621ea71bc342a30ecf2999ff.tar.bz2
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/config.in')
-rw-r--r--gdb/config.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/config.in b/gdb/config.in
index fc05f15..f20693b 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -17,6 +17,9 @@
*/
#undef CRAY_STACKSEG_END
+/* Define to 1 if std::thread works. */
+#undef CXX_STD_THREAD
+
/* Define to 1 if using `alloca.c'. */
#undef C_ALLOCA
@@ -336,6 +339,9 @@
/* Define if <sys/procfs.h> has psaddr_t. */
#undef HAVE_PSADDR_T
+/* Have PTHREAD_PRIO_INHERIT. */
+#undef HAVE_PTHREAD_PRIO_INHERIT
+
/* Define to 1 if you have the `ptrace64' function. */
#undef HAVE_PTRACE64
@@ -622,6 +628,10 @@
/* Define to 1 if the "%ll" format works to print long longs. */
#undef PRINTF_HAS_LONG_LONG
+/* Define to necessary symbol if this constant uses a non-standard name on
+ your system. */
+#undef PTHREAD_CREATE_JOINABLE
+
/* Define to the type of arg 1 for ptrace. */
#undef PTRACE_TYPE_ARG1