aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-07-05 09:53:33 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-07-05 09:54:35 -0400
commitf4931779e4432bde7f04fd1a60a7f055f86e6ccb (patch)
tree621a165f909aa5b5fa6576f05266ec4b0448be9d
parent4dcdbbd1bc1d14f2caff3bb4f8fe1f0e5dabcb85 (diff)
downloadgdb-f4931779e4432bde7f04fd1a60a7f055f86e6ccb.zip
gdb-f4931779e4432bde7f04fd1a60a7f055f86e6ccb.tar.gz
gdb-f4931779e4432bde7f04fd1a60a7f055f86e6ccb.tar.bz2
gdbsupport/common.m4: check for sigtimedwait
The next patch will make the use of sigtimedwait conditional to whether the platform provides it. Start by adding a configure check for it. gdbsupport/ChangeLog: * common.m4 (GDB_AC_COMMON): Check for sigtimedwait. * config.in, configure: Re-generate. gdb/ChangeLog: * config.in, configure: Re-generate. gdbserver/ChangeLog: * config.in, configure: Re-generate. Change-Id: Ic7613fe14521b966b4d991bbcd0933ab14629c05
-rw-r--r--gdb/config.in3
-rwxr-xr-xgdb/configure2
-rw-r--r--gdbserver/config.in3
-rwxr-xr-xgdbserver/configure2
-rw-r--r--gdbsupport/common.m42
-rw-r--r--gdbsupport/config.in3
-rwxr-xr-xgdbsupport/configure2
7 files changed, 13 insertions, 4 deletions
diff --git a/gdb/config.in b/gdb/config.in
index 9342604..2c30504 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -414,6 +414,9 @@
/* Define to 1 if you have the `sigsetmask' function. */
#undef HAVE_SIGSETMASK
+/* Define to 1 if you have the `sigtimedwait' function. */
+#undef HAVE_SIGTIMEDWAIT
+
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
diff --git a/gdb/configure b/gdb/configure
index a5c6fab..de4528c 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -13857,7 +13857,7 @@ fi
for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
ptrace64 sbrk setns sigaltstack sigprocmask \
- setpgid setpgrp getrusage getauxval
+ setpgid setpgrp getrusage getauxval sigtimedwait
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/gdbserver/config.in b/gdbserver/config.in
index 611bfd7..cf06c56 100644
--- a/gdbserver/config.in
+++ b/gdbserver/config.in
@@ -266,6 +266,9 @@
/* Define if sigsetjmp is available. */
#undef HAVE_SIGSETJMP
+/* Define to 1 if you have the `sigtimedwait' function. */
+#undef HAVE_SIGTIMEDWAIT
+
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
diff --git a/gdbserver/configure b/gdbserver/configure
index b9d4653..b227167 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -7118,7 +7118,7 @@ fi
for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
ptrace64 sbrk setns sigaltstack sigprocmask \
- setpgid setpgrp getrusage getauxval
+ setpgid setpgrp getrusage getauxval sigtimedwait
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4
index 2e709db..901c454 100644
--- a/gdbsupport/common.m4
+++ b/gdbsupport/common.m4
@@ -53,7 +53,7 @@ AC_DEFUN([GDB_AC_COMMON], [
AC_FUNC_FORK
AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
ptrace64 sbrk setns sigaltstack sigprocmask \
- setpgid setpgrp getrusage getauxval])
+ setpgid setpgrp getrusage getauxval sigtimedwait])
AC_CHECK_DECLS([strstr])
diff --git a/gdbsupport/config.in b/gdbsupport/config.in
index c44a2a1..f46e261 100644
--- a/gdbsupport/config.in
+++ b/gdbsupport/config.in
@@ -210,6 +210,9 @@
/* Define if sigsetjmp is available. */
#undef HAVE_SIGSETJMP
+/* Define to 1 if you have the `sigtimedwait' function. */
+#undef HAVE_SIGTIMEDWAIT
+
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 60643c8..a9dd02c 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
@@ -8131,7 +8131,7 @@ fi
for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
ptrace64 sbrk setns sigaltstack sigprocmask \
- setpgid setpgrp getrusage getauxval
+ setpgid setpgrp getrusage getauxval sigtimedwait
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"