aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-17 10:48:20 -0600
committerTom Tromey <tom@tromey.com>2018-10-27 11:58:41 -0600
commite418a61a67a3476826259163383e5deb661042cc (patch)
tree44214b56d20367f0979c8c00e469edcb290171a6 /gdb/Makefile.in
parent29be4d9dee1263b36e33421dd8ea69b9b7308391 (diff)
downloadfsf-binutils-gdb-e418a61a67a3476826259163383e5deb661042cc.zip
fsf-binutils-gdb-e418a61a67a3476826259163383e5deb661042cc.tar.gz
fsf-binutils-gdb-e418a61a67a3476826259163383e5deb661042cc.tar.bz2
Move mkdir_recursive to common/filestuff.c
This moves mkdir_recursive from dwarf-index-cache.c to common/filestuff.c, and also changes it to return a boolean that says whether or not it worked. gdb/ChangeLog 2018-10-27 Tom Tromey <tom@tromey.com> * unittests/mkdir-recursive-selftests.c: New file. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add unittests/mkdir-recursive-selftests.c. * dwarf-index-cache.c (mkdir_recursive): Move to common/filestuff.c. (index_cache::store): Check return value of mkdir_recursive. (create_dir_and_check, test_mkdir_recursive): Move to new file. (_initialize_index_cache): Don't register test. * common/filestuff.h (mkdir_recursive): Declare. * common/filestuff.c (mkdir_recursive): Move from dwarf-index-cache.c. Return bool.
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 d872918..73e15fc 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -419,6 +419,7 @@ SUBDIR_UNITTESTS_SRCS = \
unittests/optional-selftests.c \
unittests/parse-connection-spec-selftests.c \
unittests/ptid-selftests.c \
+ unittests/mkdir-recursive-selftests.c \
unittests/rsp-low-selftests.c \
unittests/scoped_fd-selftests.c \
unittests/scoped_mmap-selftests.c \