aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-12 13:06:18 -0600
committerTom Tromey <tom@tromey.com>2019-11-26 14:02:58 -0700
commit4da8c3a8a5d1962d24fb374122c473f930eba386 (patch)
tree80ec079a39c964f8e4c2dd30893f0e413336032b /gdb/configure
parent971db5e21e35e1ad0d124b954ce13d463b887b6c (diff)
downloadgdb-4da8c3a8a5d1962d24fb374122c473f930eba386.zip
gdb-4da8c3a8a5d1962d24fb374122c473f930eba386.tar.gz
gdb-4da8c3a8a5d1962d24fb374122c473f930eba386.tar.bz2
Set names of worker threads
This adds some configury so that gdb can set the names of worker threads. This makes them show up more nicely when debugging gdb itself. 2019-11-26 Tom Tromey <tom@tromey.com> * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set name of worker thread. * gdbsupport/common.m4 (GDB_AC_COMMON): Check for pthread_setname_np. * configure, config.in: Rebuild. gdb/gdbserver/ChangeLog 2019-11-26 Tom Tromey <tom@tromey.com> * configure, config.in: Rebuild. Change-Id: I60473d65ae9ae14d8c56ddde39684240c16aaf35
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/configure b/gdb/configure
index dd936d2..6b64619 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -14333,12 +14333,13 @@ $as_echo "$gdb_cv_cxx_std_thread" >&6; }
# This check must be here, while LIBS includes any necessary
# threading library.
- for ac_func in pthread_sigmask
+ for ac_func in pthread_sigmask pthread_setname_np
do :
- ac_fn_cxx_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
-if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define HAVE_PTHREAD_SIGMASK 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi