Do not reopen temporary files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index b9ffa69451b3896925962f5f318bc6deb8c8a6aa..346d9c6c52b39b398495021102098fb0eab19601 100644 (file)
@@ -1,3 +1,49 @@
+2018-10-27  Tom Tromey  <tom@tromey.com>
+
+       * unittests/scoped_fd-selftests.c (test_to_file): New function.
+       (run_tests): Call test_to_file.
+       * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
+       temporary files.
+       * common/scoped_fd.h (scoped_fd::to_file): New method.
+
+2018-10-27  Tom Tromey  <tom@tromey.com>
+
+       * unittests/scoped_mmap-selftests.c (test_normal): Use
+       gdb_mkostemp_cloexec.
+       * unittests/scoped_fd-selftests.c (test_destroy, test_release):
+       Use gdb_mkostemp_cloexec.
+       * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
+       gnulib/config.in, gnulib/configure,
+       gnulib/import/Makefile.am, gnulib/import/Makefile.in,
+       gnulib/import/m4/gnulib-cache.m4,
+       gnulib/import/m4/gnulib-comp.m4: Update.
+       * gnulib/import/m4/mkostemp.m4: New file.
+       * gnulib/import/m4/mkstemp.m4: Remove.
+       * gnulib/import/mkostemp.c: New file.
+       * gnulib/import/mkstemp.m4: Remove.
+       * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
+       mkstemp, add mkostemp.  Apply new patch.
+       * gnulib/import/stdlib.in.h: Apply patch.
+       * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
+       New file.
+       * dwarf-index-write.c (write_psymtabs_to_index): Use
+       gdb_mkostemp_cloexec.
+       * common/filestuff.h (gdb_mkostemp_cloexec): New function.
+
+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
This page took 0.025303 seconds and 4 git commands to generate.