+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): Likewise.
+
+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.