From e418a61a67a3476826259163383e5deb661042cc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 17 Sep 2018 10:48:20 -0600 Subject: 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 * 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. --- gdb/ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gdb/ChangeLog') 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 + * 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 + * dwarf-index-write.c (write_psymtabs_to_index): Move make_temp_filename to common/pathstuff.c. * common/pathstuff.h (make_temp_filename): Declare. -- cgit v1.1