Do not reopen temporary files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index a8d15aab03619f8fc4339fd477ad73f1b2db8585..346d9c6c52b39b398495021102098fb0eab19601 100644 (file)
@@ -1,3 +1,110 @@
+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
+       make_temp_filename to common/pathstuff.c.
+       * common/pathstuff.h (make_temp_filename): Declare.
+       * common/pathstuff.c (make_temp_filename): New function, moved
+       from dwarf-index-write.c.
+
+2018-10-27  Tom Tromey  <tom@tromey.com>
+
+       * procfs.c (procfs_target::create_inferior): Use get_shell.
+       * cli/cli-cmds.c (shell_escape): Use get_shell.
+       * windows-nat.c (windows_nat_target::create_inferior): Use
+       get_shell.
+       * common/pathstuff.c (get_shell): New function.
+       * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
+       (fork_inferior): Use get_shell.
+       * common/pathstuff.h (get_shell): Declare.
+
+2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * NEWS: Mention changes to 'info [args|functions|locals|variables]'
+
+2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * stack.c (print_variable_and_value_data): Add preg and treg.
+       (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
+       and update callers.
+       (print_frame_arg_vars): Likewise.
+       (prepare_reg): New function.
+       (info_locals_command): Extract info print args and use them.
+       (info_args_command): Likewise.
+       (_initialize_stack): Modify on-line help.
+       * symtab.c (treg_matches_sym_type_name): New function.
+       (search_symbols): New arg t_regexp.
+       (symtab_symbol_info): New args quiet, regexp, t_regexp.
+       (info_variables_command): Extract info print args and use them.
+       (info_functions_command): Likewise.
+       (info_types_command): Update call to symtab_symbol_info.
+       (_initialize_symtab): Modify on-line help.
+       * symtab.h (treg_matches_sym_type_name): New function.
+       (search_symbols): New t_regexp arg.
+
+2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * cli-utils.c (extract_arg_maybe_quoted): New function.
+       (extract_info_print_args): New function.
+       (info_print_args_help): New function.
+       (report_unrecognized_option_error): New function.
+       * cli-utils.h (extract_arg_maybe_quoted): New function.
+       (extract_info_print_args): New function.
+       (info_print_args_help): New function.
+       (report_unrecognized_option_error): New function.
+
+2018-10-26  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
+       (compute_compunit_symtab_includes): Update.
+       * symtab.h: (symtab_ptr): Remove typedef.  Don't define a VEC.
+       (compunit_symtab_ptr): Likewise.
+
 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
 
        * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
This page took 0.026682 seconds and 4 git commands to generate.