X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=c78e1eeca2f435de180ee8845eb7cdc41034506b;hb=14278e1fdbe045df184d6dd546ff6a1e9e3c3797;hp=0431dc7ad45bd7fae2556e894cb3c436e4737990;hpb=7cd06d6e89c9c17d358d8edf0b7faa9dd87edc3e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0431dc7ad4..c78e1eeca2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,694 @@ +2017-08-22 Tom Tromey + + * exec.c (exec_file_attach): Update. + * linux-thread-db.c (try_thread_db_load): Update. + * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. + * utils.c (gdb_realpath): Change return type. + (gdb_realpath_keepfile): Update. + (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. + (_initialize_utils): Register the new self test. + * source.c (openp): Update. + (find_and_open_source): Update. + * nto-tdep.c (nto_find_and_open_solib): Update. + * main.c (set_gdb_data_directory): Update. + (captured_main_1): Update. + * dwarf2read.c (dwarf2_get_dwz_file): Update + (dw2_map_symbol_filenames): Update. + * auto-load.c (auto_load_safe_path_vec_update): Update. + (filename_is_in_auto_load_safe_path_vec): Change type of + "filename_realp". + (auto_load_objfile_script): Update. + (file_is_auto_load_safe): Update. Use std::string. + * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. + +2017-08-22 Tom Tromey + + * utils.c (gdb_realpath_keepfile): Return a + gdb::unique_xmalloc_ptr. + * exec.c (exec_file_attach): Update. + * utils.h (gdb_realpath_keepfile): Return a + gdb::unique_xmalloc_ptr. + +2017-08-22 Tom Tromey + + * compile/compile.c (compile_file_command): Use + gdb::unique_xmalloc_ptr, std::string. + * utils.c (gdb_abspath): Change return type. + * source.c (openp): Update. + * objfiles.c (allocate_objfile): Update. + * main.c (set_gdb_data_directory): Update. + * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. + +2017-08-22 Zhouyi Zhou + + * cli-cmds.c (list_commands): List actual code around more than + one location. + +2017-08-21 John Baldwin + + * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. + +2017-08-21 Pedro Alves + + PR gdb/19487 + * c-exp.y (variable production): Handle function aliases. + * minsyms.c (msymbol_is_text): New function. + * minsyms.h (msymbol_is_text): Declare. + * symtab.c (find_function_alias_target): New function. + * symtab.h (find_function_alias_target): Declare. + +2017-08-21 Pedro Alves + + * eval.c (evaluate_subexp_standard) : Don't dig past + typedefs. + * typeprint.c (whatis_exp): If handling "whatis", and expression + is OP_TYPE, strip one typedef level. Otherwise don't strip + typedefs here. + * valops.c (value_cast): Save "to" type before resolving + stubs/typedefs. Use that type as resulting value's type. + +2017-08-18 Tom Tromey + Pedro Alves + + * spu-multiarch.c (parse_spufs_run): Use scoped_restore. + * sol-thread.c (sol_thread_resume, sol_thread_wait) + (sol_thread_xfer_partial, rw_common): Use scoped_restore. + * procfs.c (procfs_do_thread_registers): Use scoped_restore. + * proc-service.c (ps_xfer_memory): Use scoped_restore. + * linux-tdep.c (linux_corefile_thread): Remove a cleanup. + (linux_get_siginfo_data): Add "thread" argument. Use + scoped_restore. + * linux-nat.c (linux_child_follow_fork) + (check_stopped_by_watchpoint): Use scoped_restore. + * infrun.c (displaced_step_prepare_throw, write_memory_ptid) + (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. + (restore_inferior_ptid, save_inferior_ptid): Remove. + * btrace.c (btrace_fetch): Use scoped_restore. + * bsd-uthread.c (bsd_uthread_fetch_registers) + (bsd_uthread_store_registers): Use scoped_restore. + * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use + scoped_restore. + * aix-thread.c (aix_thread_resume, aix_thread_wait) + (aix_thread_xfer_partial): Use scoped_restore. + * inferior.h (save_inferior_ptid): Remove. + +2017-08-18 Yao Qi + + PR tdep/21818 + * arm-tdep.c (gdb_print_insn_arm): Mark + USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. + +2017-08-18 Yao Qi + + * NEWS: Mention GDBserver's new option "--selftest". + * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. + * selftest.c: Move it to common/selftest.c. + * selftest.h: Move it to common/selftest.h. + * selftest-arch.c (reset): New function. + (tests_with_arch): Call reset. + +2017-08-18 Yao Qi + + * selftest.c (run_tests): Don't call QUIT. Call debug_printf + instead of exception_fprintf and printf_filtered. + +2017-08-18 Yao Qi + + * selftest.c (register_self_test): Rename it to + selftests::register_test. + (run_self_tests): selftest::run_tests. + * selftest.h: Update declarations. + * selftest-arch.c (register_self_test_foreach_arch): Rename it to + selftests::register_test_foreach_arch. + * selftest-arch.h: Update declaration. + * aarch64-tdep.c: Update. + * arm-tdep.c: Likewise. + * disasm-selftests.c: Likewise. + * dwarf2loc.c: Likewise. + * dwarf2-frame.c: Likewise. + * findvar.c: Likewise. + * gdbarch-selftests.c: Likewise. + * maint.c (maintenance_selftest): Likewise. + * regcache.c: Likewise. + * rust-exp.y: Likewise. + * selftest-arch.c: Likewise. + * unittests/environ-selftests.c: Likewise. + * unittests/function-view-selftests.c: Likewise. + * unittests/offset-type-selftests.c: Likewise. + * unittests/optional-selftests.c: Likewise. + * unittests/scoped_restore-selftests.c: Likewise. + * utils-selftests.c: Likewise. + +2017-08-17 Pedro Alves + + * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' + local. + +2017-08-17 Pedro Alves + + * dwarf2read.c (struct dwarf2_cu) : New + field. + (reset_die_in_process): Delete, replaced by ... + (process_die_scope): ... this new class. Make it responsible for + freeing cu->line_header too. + (process_die): Use process_die_scope. + (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in + cu->line_header_die_owner. Don't release the line header if it's + owned by the CU. + (setup_type_unit_groups): Make the CU/DIE own the line header. + Don't release the line header here. + +2017-08-17 Alex Lindsay (tiny change) + + * elfread.c (elf_read_minimal_symbols): xfree synthsyms. + +2017-08-17 Ruslan Kabatsayev + + * NEWS: Mention new shortcuts for nexti and stepi in TUI + Single-Key mode + +2017-08-16 Ruslan Kabatsayev + + * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key + mode command list. + +2017-08-15 Stafford Horne + + * MAINTAINERS (Write After Approval): Add Stafford Horne. + +2017-08-15 Stafford Horne + + * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. + +2017-08-15 Sergio Durigan Junior + + PR gdb/21954 + * infcmd.c (unset_environment_command): Use the 'clear' method on + the environment instead of resetting it. + +2017-08-15 John Baldwin + + * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian + platforms. + +2017-08-14 Tom Tromey + + * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. + (print_binary_chars): Likewise. + (BITS_IN_BYTES): Remove. + +2017-08-14 Tom Tromey + + PR gdb/21675 + * valprint.c (LOW_ZERO): Change value to 034. + (print_octal_chars): Add static_asserts for octal constants. + * printcmd.c (print_scalar_formatted): Add 'd' case. + +2017-08-11 Tom Tromey + + * symfile.c (add_symbol_file_command): Use std::vector. + +2017-08-14 Tom Tromey + + * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. + * break-catch-syscall.c (create_syscall_event_catchpoint): Use + std::move. + * break-catch-sig.c (create_signal_catchpoint): Use std::move. + +2017-08-11 Pedro Alves + + * infrun.c (process_event_stop_test): Adjust + function_name_is_marked_for_skip call. + * skip.c: Include . + (skiplist_entry): Make it a class with private fields, and + getters/setters. + (skiplist_entry_chain): Delete. + (skiplist_entries): New. + (skiplist_entry_count): Delete. + (highest_skiplist_entry_num): New. + (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. + (add_skiplist_entry): Delete. + (skiplist_entry::skiplist_entry): New. + (skiplist_entry::add_entry): New. + (skip_file_command, skip_function): Adjust. + (compile_skip_regexp): Delete. + (skip_command): Don't compile regexp here. Adjust to use + skiplist_entry::add_entry. + (skip_info): Adjust to use range-for and getters. + (skip_enable_command, skip_disable_command): Adjust to use + range-for and setters. + (skip_delete_command): Adjust to use std::list. + (add_skiplist_entry): Delete. + (skip_file_p): Delete, refactored as ... + (skiplist_entry::do_skip_file_p): ... this new method. + (skip_gfile_p): Delete, refactored as ... + (skiplist_entry::do_gskip_file_p): ... this new method. + (skip_function_p, skip_rfunction_p): Delete, refactored as ... + (skiplist_entry::skip_function_p): ... this new method. + (function_name_is_marked_for_skip): Now returns bool, and takes + the function sal by const reference. Adjust to use range-for and + skiplist_entry methods. + (_initialize_step_skip): Remove references to + skiplist_entry_chain, skiplist_entry_count. + * skip.h (function_name_is_marked_for_skip): Now returns bool, and + takes the function sal by const reference. + +2017-08-11 Yao Qi + + * dwarf2-frame.c (clear_pointer_cleanup): Remove. + (dwarf2_frame_cache): Remove reset_cache_cleanup. + (dwarf2_frame_cache): + * frame-unwind.c (frame_unwind_try_unwinder): Catch + RETURN_MASK_ALL and set *this_case to NULL. + * frame-unwind.h: Update comments. + +2017-08-11 Yao Qi + + * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. + (dwarf2_frame_state_copy_regs): Remove. + (dwarf2_frame_state_free_regs): Remove. + (dwarf2_frame_state::~dwarf2_frame_state): Remove. + (dwarf2_restore_rule): Call method .alloc_regs instead of + dwarf2_frame_state_alloc_regs. + (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info + constructor. Call std::move. + (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. + (dwarf2_frame_cache): Likewise. + + [GDB_SELF_TEST]: Include selftest.h and + selftest-arch.h. + [GDB_SELF_TEST] (execute_cfa_program_test): New function. + (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register + execute_cfa_program_test. + + * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, + copy ctor, assignment operator, move assignment. + : New method. + : New method. + (struct dwarf2_frame_state): Delete dtor. + (dwarf2_frame_state_alloc_regs): Remove declaration. + * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call + dwarf2_frame_state_alloc_regs, use .alloc_regs instead. + +2017-08-11 Yao Qi + + * dwarf2-frame.c (dwarf2_frame_state_free): Remove. + (dwarf2_frame_state::dwarf2_frame_state): New. + (dwarf2_frame_state::~dwarf2_frame_state): New. + (dwarf2_fetch_cfa_info): Update. + (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object + rather than a pointer. Update code. + * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and + dtor. + : Change them to const. + : Change them + to bool. + +2017-08-11 Yao Qi + + * dwarf2-frame.h (struct dwarf2_frame_state_reg) : Remove. + : New field. + * dwarf2-frame.c (execute_cfa_program): Update. + (dwarf2_frame_prev_register): Update. + +2017-08-10 Pedro Alves + + * common/gdb_unique_ptr.h (xfree_deleter): Define. + +2017-08-09 John Baldwin + + * fbsd-nat.c (struct fbsd_fork_info): Remove. + (fbsd_pending_children): Use std::list. + (fbsd_remember_child): Likewise. + (fbsd_is_child_pending): Likewise. + (fbsd_pending_vfork_done): Use std::forward_list. + (fbsd_add_vfork_done): Likewise. + (fbsd_is_vfork_done_pending): Likewise. + (fbsd_next_vfork_done): Likewise. + +2017-08-09 John Baldwin + + * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. + (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. + [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string + for `mapfilename'. + (fbsd_xfer_partial): Use gdb::byte_vector. + (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. + +2017-08-09 John Baldwin + + * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include and + "filestuff.h". + (fbsd_find_memory_regions): Fix `mapfile' initialization. + +2017-08-09 Tom Tromey + + * skip.c (skiplist_entry): New constructor. + (skiplist_entry::enabled, skiplist_entry::function_is_regexp) + (skiplist_entry::file_is_glob): Now bool. + (skiplist_entry::file, skiplist_entry::function): Now + std::string. + (make_skip_entry): Return a unique_ptr. Use new. + (free_skiplist_entry, free_skiplist_entry_cleanup) + (make_free_skiplist_entry_cleanup): Remove. + (skip_command, skip_disable_command, add_skiplist_entry) + (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) + (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) + (function_name_is_marked_for_skip): Update. + (skip_delete_command): Update. Use delete. + +2017-08-09 Jiong Wang + + * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". + (aarch64_linux_core_read_description): New function. + (aarch64_linux_init_abi): Register gdbarch_core_read_description. + +2017-08-09 Pedro Alves + + * cp-name-parser.y (cp_comp_to_string): Return a + gdb::unique_xmalloc_ptr. + * cp-support.c (replace_typedefs_qualified_name) + (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr. + (cp_canonicalize_string_full): Use op= instead of explicit + convertion. + (cp_class_name_from_physname, method_name_from_physname) + (cp_func_name, cp_remove_params): Adjust to use + gdb::unique_xmalloc_ptr. + * cp-support.h (cp_comp_to_string): Return a + gdb::unique_xmalloc_ptr. + * python/py-type.c (typy_lookup_type): Adjust to use + gdb::unique_xmalloc_ptr. + +2017-08-09 H.J. Lu + + * dwarf2read.c (dwarf2_string_attr): Fix a typo. + +2017-08-09 Alex Lindsay + Yao Qi + + * cp-support.c (cp_canonicalize_string_full): Use + gdb::unique_xmalloc_ptr. + (cp_canonicalize_string): Likewise. + +2017-08-09 Yao Qi + + * features/Makefile (WHICH): Remove i386/ non-linux stuff. + * regformats/i386/amd64-avx-avx512.dat: Remove. + * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. + * regformats/i386/amd64-avx-mpx.dat:Remove. + * regformats/i386/amd64-avx.dat: Remove. + * regformats/i386/amd64-mpx.dat: Remove. + * regformats/i386/i386-avx-avx512.dat: Remove. + * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. + * regformats/i386/i386-avx-mpx.dat: Remove. + * regformats/i386/i386-mmx.dat: Remove. + * regformats/i386/i386-mpx.dat: Remove. + +2017-08-09 Yao Qi + + * amd64-tdep.h (tdesc_x32): Remove the declaration. + * amd64-tdep.c: Don't include features/i386/x32*.c. + (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* + functions. + * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, + and i386/x32-avx-avx512. + (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, + and i386/x32.xml. + * features/i386/x32-avx-avx512.c: Removed. + * features/i386/x32-avx-avx512.xml: Removed. + * features/i386/x32-avx.c: Removed. + * features/i386/x32-avx.xml: Removed. + * features/i386/x32.c: Removed. + * features/i386/x32.xml: Removed. + * regformats/i386/x32-avx-avx512.dat: Removed. + * regformats/i386/x32-avx.dat: Removed. + * regformats/i386/x32.dat: Removed. + +2017-08-07 Maciej W. Rozycki + + PR breakpoints/21886 + * mem-break.c (default_memory_insert_breakpoint): Use + `->placed_address' rather than `->reqstd_address' for the + breakpoint location. + +2017-08-07 Maciej W. Rozycki + + * arch-utils.c (default_print_insn): Remove arch/mach/endian + assertions. + +2017-08-07 Maciej W. Rozycki + + * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with + a union of `tdep_info', `tdesc_data' and `id'. + * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' + rather than `info.tdep_info'. + * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. + * i386-linux-tdep.c (i386_linux_init_abi): Likewise. + * i386-tdep.c (i386_gdbarch_init): Likewise. + * mips-linux-tdep.c (mips_linux_init_abi): Likewise. + * mips-tdep.c (mips_gdbarch_init): Likewise. + * nds32-tdep.c (nds32_gdbarch_init): Likewise. + * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. + * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than + `info.tdep_info'. + (ppc_linux_init_abi): Use `info.tdesc_data' rather than + `info.tdep_info'. + * sparc-tdep.c (sparc32_gdbarch_init): Likewise. + * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than + `info.tdep_info'. + * spu-tdep.c (spu_gdbarch_init): Likewise. + * gdbarch.h: Regenerate. + +2017-08-07 Leszek Swirski + + PR symtab/20899 + * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. + +2017-08-07 Simon Marchi + + * remote-sim.c (gdbsim_load): Remove char **argv local variable. + (gdbsim_open): Rename gdb_argv args object to argv. + +2017-08-05 Tom Tromey + + * compile/compile-object-load.c (compile_object_load): Use + gdb::unique_xmalloc_ptr. + * cli/cli-dump.c (scan_filename): Rename from + scan_filename_with_cleanup. Change return type. + (scan_expression): Rename from scan_expression_with_cleanup. + Change return type. + (dump_memory_to_file, dump_value_to_file, restore_command): + Use gdb::unique_xmalloc_ptr. Update. + * cli/cli-cmds.c (find_and_open_script): Use + gdb::unique_xmalloc_ptr. + * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. + * symmisc.c (maintenance_print_symbols) + (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. + * symfile.c (symfile_bfd_open, generic_load) + (add_symbol_file_command, remove_symbol_file_command): Use + gdb::unique_xmalloc_ptr. + * source.c (openp): Use gdb::unique_xmalloc_ptr. + * psymtab.c (maintenance_print_psymbols): Use + gdb::unique_xmalloc_ptr. + * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. + * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. + * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. + (reload_shared_libraries_1): Likewise. + +2017-08-05 Tom Tromey + + * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. + (rust_op_vector, rust_set_vector): New typedefs. + (current_parser): New global. + (work_obstack): Change to pointer type. Update all users. + (rust_ast, pstate): Remove globals. + (struct rust_parser): New. + (%union) : Change type. + (start, tuple_expr, unit_expr, struct_expr_list, literal) + (field_expr, expr_list, maybe_expr_list, type_list): Update. + (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) + (convert_params_to_types, convert_params_to_expression): Change + type of "params". + (ast_string): Change type of "fields". + (rust_parse): Make a rust_parser. Remove cleanups. + (rust_lex_tests): Make and install an auto_obstack. + +2017-08-04 Yao Qi + + * configure.srv (ipa_x32_linux_regobj): New. + * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 + instead of X86_TDESC_AVX512. + (initialize_low_tracepoint): Call + init_registers_x32_avx_avx512_linux. + +2017-08-04 Yao Qi + + * utils.h (gdb_argv): Add namespace std for nullptr_t. + +2017-08-03 Ruslan Kabatsayev + + * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. + +2017-08-03 Tom Tromey + + * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): + Remove. + * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. + +2017-08-03 Tom Tromey + + * python/py-param.c (compute_enum_values): Use gdb_argv. + +2017-08-03 Tom Tromey + + * utils.h (struct gdb_argv_deleter): New. + (gdb_argv): New class. + * utils.c (gdb_argv::reset): New method. + * tracepoint.c (delete_trace_variable_command): Use gdb_argv. + * tracefile.c (tsave_command): Use gdb_argv. + * top.c (new_ui_command): Use gdb_argv. + * symmisc.c (maintenance_print_symbols) + (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. + * symfile.c (symbol_file_command, generic_load) + (remove_symbol_file_command): Use gdb_argv. + * stack.c (backtrace_command): Use gdb_argv. + * source.c (add_path, show_substitute_path_command) + (unset_substitute_path_command, set_substitute_path_command): + Use gdb_argv. + * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. + * ser-mingw.c (pipe_windows_open): Use gdb_argv. + * remote.c (extended_remote_run, remote_put_command) + (remote_get_command, remote_delete_command): Use gdb_argv. + * remote-sim.c (gdbsim_load, gdbsim_create_inferior) + (gdbsim_open): Use gdb_argv. + * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. + * psymtab.c (maintenance_print_psymbols): Use gdb_argv. + * procfs.c (procfs_info_proc): Use gdb_argv. + * interps.c (interpreter_exec_cmd): Use gdb_argv. + * infrun.c (handle_command): Use gdb_argv. + * inferior.c (add_inferior_command, clone_inferior_command): + Use gdb_argv. + * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. + * exec.c (exec_file_command): Use gdb_argv. + * cli/cli-cmds.c (alias_command): Use gdb_argv. + * compile/compile.c (build_argc_argv): Use gdb_argv. + +2017-08-03 Tom Tromey + + * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. + +2017-08-03 Tom Tromey + + * python/python.c (compute_python_string): Return std::string. + (gdbpy_eval_from_control_command): Update. + (do_start_initialization): Use std::string. + * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not + xstrprintf. + * python/py-breakpoint.c (local_setattro): Use string_printf, not + xstrprintf. + +2017-08-03 Tom Tromey + + * top.h (do_restore_instream_cleanup): Remove. + * top.c (do_restore_instream_cleanup): Remove. + (read_command_file): Use scoped_restore. + * cli/cli-script.c (execute_user_command): Use scoped_restore. + +2017-08-03 Tom Tromey + + * cli/cli-script.c (execute_user_command) + (execute_control_command): Use scoped_restore. + +2017-08-03 Tom Tromey + + * cli/cli-script.c (do_restore_user_call_depth): Remove. + (execute_user_command): Remove user_call_depth; use + user_args_stack's size instead. + +2017-08-03 Tom Tromey + + * top.h (in_user_command): Remove. + * top.c (in_user_command): Remove. + * cli/cli-script.c (do_restore_user_call_depth) + (execute_user_command): Update. + +2017-08-03 Tom Tromey + + * valops.c (search_struct_method): Use gdb::byte_vector. + * valarith.c (value_concat): Use std::vector. + * target.c (memory_xfer_partial): Use gdb::byte_vector. + (simple_search_memory): Likewise. + * printcmd.c (find_string_backward): Use gdb::byte_vector. + * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. + * gcore.c (gcore_copy_callback): Use gdb::byte_vector. + * elfread.c (elf_rel_plt_read): Use std::string. + * cp-valprint.c (cp_print_value): Use gdb::byte_vector. + * cli/cli-dump.c (restore_section_callback): Use + gdb::byte_vector. + +2017-08-03 Tom Tromey + + * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. + +2017-08-03 Tom Tromey + + * tui/tui-regs.c (tui_restore_gdbout): Remove. + (tui_register_format): Use scoped_restore. + +2017-08-03 Tom Tromey + + * reverse.c (exec_direction_default): Remove. + (exec_reverse_once): Use scoped_restore. + * remote.c (restore_remote_timeout): Remove. + (remote_flash_erase, remote_flash_write, remote_flash_done) + (readchar, remote_serial_write): Use scoped_restore. + * cli/cli-script.c (struct source_cleanup_lines_args) + (source_cleanup_lines): Remove. + (script_from_file): Use scoped_restore. + * cli/cli-cmds.c (source_verbose_cleanup): Remove. + (source_command): Use scoped_restore. + +2017-08-03 Tom Tromey + + * utils.h (make_cleanup_free_so): Remove. + * utils.c (do_free_so, make_cleanup_free_so): Remove. + * solist.h (struct so_deleter): New. + (so_list_up): New typedef. + * solib-svr4.c (svr4_read_so_list): Use so_list_up. + +2017-08-03 Tom Tromey + + * utils.h (make_cleanup_restore_current_language): Remove. + * utils.c (do_restore_current_language) + (make_cleanup_restore_current_language): Remove. + * parse.c (parse_exp_in_context_1) + (parse_expression_with_language): Use + scoped_restore_current_language. + * mi/mi-main.c (mi_cmd_execute): Use + scoped_restore_current_language. + * language.h (scoped_restore_current_language): New class. + +2017-08-03 Tom Tromey + + * compile/compile.c (cleanup_unlink_file): Remove. + (compile_to_object): Use gdb::unlinker. + (eval_compile_command): Likewise. + +2017-08-03 Tom Tromey + + * utils.h (make_cleanup_fclose): Remove. + * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. + +2017-08-03 Tom Tromey + + * top.c (open_terminal_stream): Return gdb_file_up. + (new_ui_command): Update. + +2017-08-03 Tom Tromey + + * source.c (print_source_lines_base, forward_search_command) + (reverse_search_command): Use gdb_file_up. + 2017-08-03 Tom Tromey * fbsd-nat.c (fbsd_find_memory_regions): Update.