From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id D96773858023 for ; Sun, 27 Jun 2021 19:13:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D96773858023 X-ASG-Debug-ID: 1624821196-0c856e67e21760840001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id 43admFHXNn8NDI1C (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Jun 2021 15:13:16 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id 98EE6441B21; Sun, 27 Jun 2021 15:13:16 -0400 (EDT) From: Simon Marchi X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH 1/2] gdbsupport/common.m4: check for sigtimedwait Date: Sun, 27 Jun 2021 15:13:13 -0400 X-ASG-Orig-Subj: [PATCH 1/2] gdbsupport/common.m4: check for sigtimedwait Message-Id: <20210627191314.13361-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1624821196 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 4026 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.90944 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-17.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2021 19:13:19 -0000 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/config.in | 3 +++ gdb/configure | 2 +- gdbserver/config.in | 3 +++ gdbserver/configure | 2 +- gdbsupport/common.m4 | 2 +- gdbsupport/config.in | 3 +++ gdbsupport/configure | 2 +- 7 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gdb/config.in b/gdb/config.in index 9342604ac4c9..2c30504905b8 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 a5c6fab118c5..de4528c43ad8 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 611bfd7aa768..cf06c56421d1 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 b9d4653ae5e1..b227167e270c 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 2e709dbbdbb3..901c454ea8cb 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 c44a2a1e5de8..f46e2612c743 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 60643c80b5a8..a9dd02c5b722 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.32.0