From 507af45f6280a78163d07e3869573f295b34916c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 5 Jul 2021 09:56:05 -0400 Subject: [PATCH] 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 --- gdb/ChangeLog | 4 ++++ gdb/config.in | 3 +++ gdb/configure | 2 +- gdbserver/ChangeLog | 4 ++++ gdbserver/config.in | 3 +++ gdbserver/configure | 2 +- gdbsupport/ChangeLog | 5 +++++ gdbsupport/common.m4 | 2 +- gdbsupport/config.in | 3 +++ gdbsupport/configure | 2 +- 10 files changed, 26 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8bcf63d755..37740fdd0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-07-05 Simon Marchi + + * config.in, configure: Re-generate. + 2021-07-04 Simon Marchi * solib-darwin.c (darwin_solib_create_inferior_hook): Return diff --git a/gdb/config.in b/gdb/config.in index 9342604ac4..2c30504905 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 a5c6fab118..de4528c43a 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/ChangeLog b/gdbserver/ChangeLog index c2ff85ed55..f6a49f37e7 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2021-07-05 Simon Marchi + + * config.in, configure: Re-generate. + 2021-06-19 Mike Frysinger * acinclude.m4: Delete most m4_include's of ../config files. diff --git a/gdbserver/config.in b/gdbserver/config.in index 611bfd7aa7..cf06c56421 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 b9d4653ae5..b227167e27 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/ChangeLog b/gdbsupport/ChangeLog index d054899333..afe9171ff7 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -1,3 +1,8 @@ +2021-07-05 Simon Marchi + + * common.m4 (GDB_AC_COMMON): Check for sigtimedwait. + * config.in, configure: Re-generate. + 2021-06-17 Pedro Alves * scoped_ignore_signal.h diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4 index 2e709dbbdb..901c454ea8 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 c44a2a1e5d..f46e2612c7 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 60643c80b5..a9dd02c5b7 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" -- 2.34.1