+2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
+
+ * cli-cmds.c (list_commands): List actual code around more than
+ one location.
+
+2017-08-21 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
+
+2017-08-21 Pedro Alves <palves@redhat.com>
+
+ 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 <palves@redhat.com>
+
+ * eval.c (evaluate_subexp_standard) <OP_TYPE>: 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 <tom@tromey.com>
+ Pedro Alves <palves@redhat.com>
+
+ * 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 <yao.qi@linaro.org>
+
+ 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 <yao.qi@linaro.org>
+
+ * 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 <yao.qi@linaro.org>
+
+ * selftest.c (run_tests): Don't call QUIT. Call debug_printf
+ instead of exception_fprintf and printf_filtered.
+
+2017-08-18 Yao Qi <yao.qi@linaro.org>
+
+ * 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 <palves@redhat.com>
+
+ * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
+ local.
+
+2017-08-17 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: 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 <alexlindsay239@gmail.com> (tiny change)
+
+ * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
+
+2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
+
+ * NEWS: Mention new shortcuts for nexti and stepi in TUI
+ Single-Key mode
+
+2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
+
+ * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
+ mode command list.
+
+2017-08-15 Stafford Horne <shorne@gmail.com>
+
+ * MAINTAINERS (Write After Approval): Add Stafford Horne.
+
+2017-08-15 Stafford Horne <shorne@gmail.com>
+
+ * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
+
+2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ PR gdb/21954
+ * infcmd.c (unset_environment_command): Use the 'clear' method on
+ the environment instead of resetting it.
+
+2017-08-15 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
+ platforms.
+
+2017-08-14 Tom Tromey <tom@tromey.com>
+
+ * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
+ (print_binary_chars): Likewise.
+ (BITS_IN_BYTES): Remove.
+
+2017-08-14 Tom Tromey <tom@tromey.com>
+
+ 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 <tom@tromey.com>
+
+ * symfile.c (add_symbol_file_command): Use std::vector.
+
+2017-08-14 Tom Tromey <tom@tromey.com>
+
+ * 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 <palves@redhat.com>
+
+ * infrun.c (process_event_stop_test): Adjust
+ function_name_is_marked_for_skip call.
+ * skip.c: Include <list>.
+ (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 <yao.qi@linaro.org>
+
+ * 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 <yao.qi@linaro.org>
+
+ * 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.
+ <alloc_regs>: New method.
+ <swap>: 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 <yao.qi@linaro.org>
+
+ * 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.
+ <data_align, code_align, retaddr_column>: Change them to const.
+ <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
+ to bool.
+
+2017-08-11 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
+ <loc.exp>: New field.
+ * dwarf2-frame.c (execute_cfa_program): Update.
+ (dwarf2_frame_prev_register): Update.
+
+2017-08-10 Pedro Alves <palves@redhat.com>
+
+ * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
+
+2017-08-09 John Baldwin <jhb@FreeBSD.org>
+
+ * 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 <jhb@FreeBSD.org>
+
+ * 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 <jhb@FreeBSD.org>
+
+ * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
+ "filestuff.h".
+ (fbsd_find_memory_regions): Fix `mapfile' initialization.
+
+2017-08-09 Tom Tromey <tom@tromey.com>
+
+ * 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 <jiong.wang@arm.com>
+
+ * 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 <palves@redhat.com>
+
+ * cp-name-parser.y (cp_comp_to_string): Return a
+ gdb::unique_xmalloc_ptr<char>.
+ * cp-support.c (replace_typedefs_qualified_name)
+ (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
+ (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<char>.
+ * cp-support.h (cp_comp_to_string): Return a
+ gdb::unique_xmalloc_ptr<char>.
+ * python/py-type.c (typy_lookup_type): Adjust to use
+ gdb::unique_xmalloc_ptr<char>.
+
+2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dwarf2read.c (dwarf2_string_attr): Fix a typo.
+
+2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
+ Yao Qi <yao.qi@linaro.org>
+
+ * cp-support.c (cp_canonicalize_string_full): Use
+ gdb::unique_xmalloc_ptr<char>.
+ (cp_canonicalize_string): Likewise.
+
+2017-08-09 Yao Qi <yao.qi@linaro.org>
+
+ * 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 <yao.qi@linaro.org>
+
+ * 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 <macro@imgtec.com>
+
+ 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 <macro@imgtec.com>
+
+ * arch-utils.c (default_print_insn): Remove arch/mach/endian
+ assertions.
+
+2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
+
+ * 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 <leszeks@google.com>
+
+ PR symtab/20899
+ * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
+
+2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * remote-sim.c (gdbsim_load): Remove char **argv local variable.
+ (gdbsim_open): Rename gdb_argv args object to argv.
+
+2017-08-05 Tom Tromey <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * 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) <params, field_inits>: 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 <yao.qi@linaro.org>
+
+ * 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 <yao.qi@linaro.org>
+
+ * utils.h (gdb_argv): Add namespace std for nullptr_t.
+
+2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
+
+ * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
+ Remove.
+ * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * python/py-param.c (compute_enum_values): Use gdb_argv.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * cli/cli-script.c (execute_user_command)
+ (execute_control_command): Use scoped_restore.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-regs.c (tui_restore_gdbout): Remove.
+ (tui_register_format): Use scoped_restore.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * 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 <tom@tromey.com>
+
+ * compile/compile.c (cleanup_unlink_file): Remove.
+ (compile_to_object): Use gdb::unlinker.
+ (eval_compile_command): Likewise.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * utils.h (make_cleanup_fclose): Remove.
+ * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * top.c (open_terminal_stream): Return gdb_file_up.
+ (new_ui_command): Update.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * source.c (print_source_lines_base, forward_search_command)
+ (reverse_search_command): Use gdb_file_up.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * fbsd-nat.c (fbsd_find_memory_regions): Update.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * cli/cli-cmds.c (find_and_open_script): Change return type.
+ Remove "streamp" and "full_path" parameters.
+ (source_script_with_search): Update.
+ * auto-load.c (source_script_file): Update.
+ * cli/cli-cmds.h (find_and_open_script): Change type.
+ (open_script): New struct.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * xml-support.c (xml_fetch_content_from_file): Update.
+ * ui-file.c (stdio_file::open): Update.
+ * tracefile-tfile.c (tfile_start): Update.
+ * remote.c (remote_file_put, remote_file_get): Update.
+ * nat/linux-procfs.c (linux_proc_get_int)
+ (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
+ * nat/linux-osdata.c (linux_common_core_of_thread): Update.
+ (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
+ (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
+ (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
+ * nat/linux-btrace.c (linux_determine_kernel_start): Update.
+ * linux-nat.c (linux_proc_pending_signals): Update.
+ * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
+ (file_closer): Remove.
+ * compile/compile.c (compile_to_object): Update.
+ * common/filestuff.h (struct gdb_file_deleter): New.
+ (gdb_file_up): New typedef.
+ (gdb_fopen_cloexec): Change return type.
+ * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
+ * cli/cli-dump.c (fopen_with_cleanup): Remove.
+ (dump_binary_file, restore_binary_file): Update.
+ * auto-load.c (auto_load_objfile_script_1): Update.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
+ * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
+ (info_static_tracepoint_markers_command): Likewise.
+ * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
+ * skip.c (skip_info): Use ui_out_emit_table.
+ * progspace.c (print_program_space): Use ui_out_emit_table.
+ * osdata.c (info_osdata): Use ui_out_emit_table.
+ * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
+ ui_out_emit_table.
+ * linux-thread-db.c (info_auto_load_libthread_db): Use
+ ui_out_emit_table.
+ * inferior.c (print_inferior): Use ui_out_emit_table.
+ * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
+ * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
+ * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
+ * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
+ * ui-out.h (class ui_out_emit_table): New.
+
+2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
+
+ * mips-tdep.c (mips_fpu_type_str): New function.
+ (mips_dump_tdep): Call it.
+
+2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
+ `->mips_fpu_type'.
+
+2017-07-31 Xavier Roirand <roirand@adacore.com>
+
+ * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
+
2017-07-27 Xavier Roirand <roirand@adacore.com>
* MAINTAINERS (Write After Approval): Add Xavier Roirand.