aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
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/ChangeLog
parent29be4d9dee1263b36e33421dd8ea69b9b7308391 (diff)
downloadgdb-e418a61a67a3476826259163383e5deb661042cc.zip
gdb-e418a61a67a3476826259163383e5deb661042cc.tar.gz
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/ChangeLog')
-rw-r--r--gdb/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b9ffa69..0f7078c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,19 @@
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.
+
+2018-10-27 Tom Tromey <tom@tromey.com>
+
* dwarf-index-write.c (write_psymtabs_to_index): Move
make_temp_filename to common/pathstuff.c.
* common/pathstuff.h (make_temp_filename): Declare.