diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
commit | ea3e7446dcac18abb68772ce4e04b72815f49745 (patch) | |
tree | a06b1acf42f288af38f4b98d24542e415183c5c0 /gdbsupport/configure | |
parent | 6a8fe63330c922255a4ced4b6491d35f6c384bba (diff) | |
download | gdb-ea3e7446dcac18abb68772ce4e04b72815f49745.zip gdb-ea3e7446dcac18abb68772ce4e04b72815f49745.tar.gz gdb-ea3e7446dcac18abb68772ce4e04b72815f49745.tar.bz2 |
gdbsupport: Add an event-pipe class.
This pulls out the implementation of an event pipe used to implement
target async support in both linux-low.cc (gdbserver) and linux-nat.c
(gdb).
This will be used to replace the existing event pipe in linux-low.cc
and linux-nat.c in future commits.
Co-Authored-By: Lancelot SIX <lsix@lancelotsix.com>
Diffstat (limited to 'gdbsupport/configure')
-rwxr-xr-x | gdbsupport/configure | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdbsupport/configure b/gdbsupport/configure index afaba88..2070a39 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -626,6 +626,8 @@ LTLIBOBJS LIBOBJS WERROR_CFLAGS WARN_CFLAGS +HAVE_PIPE_OR_PIPE2_FALSE +HAVE_PIPE_OR_PIPE2_TRUE SELFTEST_FALSE SELFTEST_TRUE LTLIBIPT @@ -10002,6 +10004,15 @@ else fi + if test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ; then + HAVE_PIPE_OR_PIPE2_TRUE= + HAVE_PIPE_OR_PIPE2_FALSE='#' +else + HAVE_PIPE_OR_PIPE2_TRUE='#' + HAVE_PIPE_OR_PIPE2_FALSE= +fi + + # Check the return and argument types of ptrace. @@ -10597,6 +10608,10 @@ if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then as_fn_error $? "conditional \"SELFTEST\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PIPE_OR_PIPE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 |