aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-04-13 12:42:59 -0600
committerTom Tromey <tromey@adacore.com>2020-04-13 14:10:03 -0600
commit8ae8e197961644c3621591d0ac5738e7efff64da (patch)
tree9daf39b0a02457b442739d0e24510f9dfcef1c96 /gdbsupport
parent58cf28e860429822ab0aa93a56e130c4430df396 (diff)
downloadbinutils-8ae8e197961644c3621591d0ac5738e7efff64da.zip
binutils-8ae8e197961644c3621591d0ac5738e7efff64da.tar.gz
binutils-8ae8e197961644c3621591d0ac5738e7efff64da.tar.bz2
Move event-loop configury to common.m4
gdb_select.h and the event loop require some configure checks, so this moves the needed checks to common.m4 and updates the configure scripts. gdb/ChangeLog 2020-04-13 Tom Tromey <tom@tromey.com> * configure: Rebuild. * configure.ac: Remove checks that are now in GDB_AC_COMMON. gdbserver/ChangeLog 2020-04-13 Tom Tromey <tom@tromey.com> * configure: Rebuild. * config.in: Rebuild. gdbsupport/ChangeLog 2020-04-13 Tom Tromey <tom@tromey.com> * config.in, configure: Rebuild. * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h, sys/select.h, and poll.
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/ChangeLog6
-rw-r--r--gdbsupport/common.m45
-rw-r--r--gdbsupport/config.in12
-rwxr-xr-xgdbsupport/configure4
4 files changed, 23 insertions, 4 deletions
diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
index 86233e8..0d0ea87 100644
--- a/gdbsupport/ChangeLog
+++ b/gdbsupport/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-13 Tom Tromey <tom@tromey.com>
+
+ * config.in, configure: Rebuild.
+ * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
+ sys/select.h, and poll.
+
2020-03-31 Tom Tromey <tromey@adacore.com>
* btrace-common.cc (btrace_data_append): Conditionally call
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4
index e670586..b461f5f 100644
--- a/gdbsupport/common.m4
+++ b/gdbsupport/common.m4
@@ -46,11 +46,12 @@ AC_DEFUN([GDB_AC_COMMON], [
thread_db.h wait.h dnl
termios.h dnl
dlfcn.h dnl
- linux/elf.h sys/procfs.h proc_service.h)
+ linux/elf.h sys/procfs.h proc_service.h dnl
+ poll.h sys/poll.h sys/select.h)
AC_FUNC_MMAP
AC_FUNC_VFORK
- AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 socketpair sigaction \
+ AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
ptrace64 sbrk setns sigaltstack sigprocmask \
setpgid setpgrp getrusage getauxval])
diff --git a/gdbsupport/config.in b/gdbsupport/config.in
index 94e90ec..5556501 100644
--- a/gdbsupport/config.in
+++ b/gdbsupport/config.in
@@ -151,6 +151,12 @@
/* Define to 1 if you have the `pipe2' function. */
#undef HAVE_PIPE2
+/* Define to 1 if you have the `poll' function. */
+#undef HAVE_POLL
+
+/* Define to 1 if you have the <poll.h> header file. */
+#undef HAVE_POLL_H
+
/* Define if <sys/procfs.h> has prfpregset_t. */
#undef HAVE_PRFPREGSET_T
@@ -241,6 +247,9 @@
/* Define to 1 if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
+/* Define to 1 if you have the <sys/poll.h> header file. */
+#undef HAVE_SYS_POLL_H
+
/* Define to 1 if you have the <sys/procfs.h> header file. */
#undef HAVE_SYS_PROCFS_H
@@ -250,6 +259,9 @@
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
+/* Define to 1 if you have the <sys/select.h> header file. */
+#undef HAVE_SYS_SELECT_H
+
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
diff --git a/gdbsupport/configure b/gdbsupport/configure
index 186cac6..51caeeb 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
@@ -8404,7 +8404,7 @@ $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
fi
- for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h sys/procfs.h proc_service.h
+ for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h sys/procfs.h proc_service.h poll.h sys/poll.h sys/select.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -8809,7 +8809,7 @@ $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
fi
- for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction \
+ for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
ptrace64 sbrk setns sigaltstack sigprocmask \
setpgid setpgrp getrusage getauxval
do :