aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/Makefile.am
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-02-22 11:22:14 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2022-02-22 11:22:14 -0800
commitea3e7446dcac18abb68772ce4e04b72815f49745 (patch)
treea06b1acf42f288af38f4b98d24542e415183c5c0 /gdbsupport/Makefile.am
parent6a8fe63330c922255a4ced4b6491d35f6c384bba (diff)
downloadgdb-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/Makefile.am')
-rw-r--r--gdbsupport/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am
index 6049fac..1416027 100644
--- a/gdbsupport/Makefile.am
+++ b/gdbsupport/Makefile.am
@@ -35,6 +35,10 @@ if SELFTEST
selftest = selftest.cc
endif
+if HAVE_PIPE_OR_PIPE2
+eventpipe = event-pipe.cc
+endif
+
libgdbsupport_a_SOURCES = \
agent.cc \
btrace-common.cc \
@@ -74,6 +78,7 @@ libgdbsupport_a_SOURCES = \
tdesc.cc \
thread-pool.cc \
xml-utils.cc \
+ ${eventpipe} \
$(selftest)
# Double-check that no defines are missing from our configury.