aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2018-01-26 13:07:29 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2018-02-09 14:03:18 +0100
commitea4a0888120dec61348cae460ffa08de663e2852 (patch)
tree10e0954504a3fa4e99dce1a4af3766515a4126dd /gdb/Makefile.in
parent869e8290ea62f594d2472476303bb74604e9326b (diff)
downloadgdb-ea4a0888120dec61348cae460ffa08de663e2852.zip
gdb-ea4a0888120dec61348cae460ffa08de663e2852.tar.gz
gdb-ea4a0888120dec61348cae460ffa08de663e2852.tar.bz2
common: add scoped_fd
Add a simple helper to automatically close a file descriptor. gdb/ * common/scoped_fd.h: New. * unittests/scoped_fd-selftest.c: New. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add unittests/scoped_fd-selftest.c.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 0f87398..a982cdf5 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -424,6 +424,7 @@ SUBDIR_UNITTESTS_SRCS = \
unittests/optional-selftests.c \
unittests/ptid-selftests.c \
unittests/rsp-low-selftests.c \
+ unittests/scoped_fd-selftests.c \
unittests/scoped_restore-selftests.c \
unittests/xml-utils-selftests.c