]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Use unique_xmalloc_ptr in cd_command
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index c13045865b146112173c3c4737346e3e7a39a434..6d6dad15ff57014bc0567a909be729d33f8c6e16 100644 (file)
@@ -1,3 +1,966 @@
+2017-09-03  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
+
+2017-09-03  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
+
+2017-09-03  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-cmd-env.c (env_execute_cli_command): Use
+       gdb::unique_xmalloc_ptr.
+
+2017-09-03  Tom Tromey  <tom@tromey.com>
+
+       * thread.c (print_thread_info_1): Use string_printf.
+       (thread_apply_command, thread_apply_all_command): Use
+       std::string.
+
+2017-09-03  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (val_print_string): Update.
+       * gdbcore.h (memory_error_message): Return std::string.
+       * corefile.c (memory_error_message): Return std::string.
+       (memory_error): Update.
+       * breakpoint.c (insert_bp_location): Update.
+
+2017-09-03  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * target/waitstatus.h (target_waitstatus_to_string): Change
+       return type to std::string.
+       * target/waitstatus.c (target_waitstatus_to_string): Return
+       std::string.
+       * target.h (target_waitstatus_to_string): Remove declaration.
+       * infrun.c (resume, clear_proceed_status_thread,
+       print_target_wait_results, do_target_wait, save_waitstatus,
+       stop_all_threads): Adjust.
+       * record-btrace.c (record_btrace_wait): Adjust.
+       * target-debug.h
+       (target_debug_print_struct_target_waitstatus_p): Adjust.
+
+2017-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR gdb/22046
+       * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
+       detection.
+
+2017-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * NEWS (Changes since GDB 8.0): Add entry mentioning new support
+       for setting/unsetting environment variables on the remote target.
+       (New remote packets): Add entries for QEnvironmentHexEncoded,
+       QEnvironmentUnset and QEnvironmentReset.
+       * common/environ.c (gdb_environ::operator=): Extend method to
+       handle m_user_set_env_list and m_user_unset_env_list.
+       (gdb_environ::clear): Likewise.
+       (match_var_in_string): Change type of first parameter from 'char
+       *' to 'const char *'.
+       (gdb_environ::set): Extend method to handle
+       m_user_set_env_list and m_user_unset_env_list.
+       (gdb_environ::unset): Likewise.
+       (gdb_environ::clear_user_set_env): New method.
+       (gdb_environ::user_set_envp): Likewise.
+       (gdb_environ::user_unset_envp): Likewise.
+       * common/environ.h (gdb_environ): Handle m_user_set_env_list and
+       m_user_unset_env_list on move constructor/assignment.
+       (unset): Add new default parameter 'update_unset_list = true'.
+       (clear_user_set_env): New method.
+       (user_set_envp): Likewise.
+       (user_unset_envp): Likewise.
+       (m_user_set_env_list): New std::set.
+       (m_user_unset_env_list): Likewise.
+       * common/rsp-low.c (hex2str): New function.
+       (bin2hex): New overload for bin2hex function.
+       * common/rsp-low.c (hex2str): New prototype.
+       (str2hex): New overload prototype.
+       * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
+       QEnvironmentUnset and QEnvironmentReset.
+       (remote_protocol_features): Add QEnvironmentHexEncoded,
+       QEnvironmentUnset and QEnvironmentReset packets.
+       (send_environment_packet): New function.
+       (extended_remote_environment_support): Likewise.
+       (extended_remote_create_inferior): Call
+       extended_remote_environment_support.
+       (_initialize_remote): Add QEnvironmentHexEncoded,
+       QEnvironmentUnset and QEnvironmentReset packet configs.
+       * unittests/environ-selftests.c (gdb_selftest_env_var):
+       New variable.
+       (test_vector_initialization): New function.
+       (test_init_from_host_environ): Likewise.
+       (test_reinit_from_host_environ): Likewise.
+       (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
+       Likewise.
+       (test_unset_set_empty_vector): Likewise.
+       (test_vector_clear): Likewise.
+       (test_std_move): Likewise.
+       (test_move_constructor):
+       (test_self_move): Likewise.
+       (test_set_unset_reset): Likewise.
+       (run_tests): Rewrite in terms of the functions above.
+
+2017-08-31  Weimin Pan  <weimin.pan@oracle.com>
+
+       * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
+       (adi_available): Use a temp variable of type CORE_ADDR as argument
+       3 when calling target_auxv_search.
+       (adi_normalize_address): Use masks and xor operators to calculate
+       normalized address.
+       (adi_read_versions, adi_write_versions, adi_print_versions)
+       (do_examine, do_assign): Use paddress.
+
+2017-08-29  John Baldwin  <jhb@FreeBSD.org>
+
+       * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
+       * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
+       out of loop and add supply of FIR.
+       (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
+       add collect of FIR.
+
+2017-08-28  Simon Marchi  <simon.marchi@ericsson.com>
+
+       PR gdb/21827
+       * cli/cli-script.c (define_command): Don't convert command name
+       to lower case.
+
+2017-08-25  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
+       Update all callers accordingly. Remove all code blocks handling
+       the case where DISPP is not NULL.
+
+2017-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR symtab/22003
+       * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
+       (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
+       (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
+
+2017-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (build_type_psymtabs_reader): New prototype.
+       (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
+       (read_comp_units_from_section): New parameter abbrev_section, use
+       read_and_check_comp_unit_head, allocate signatured_type if needed.
+       (create_all_comp_units): Update read_comp_units_from_section caller.
+
+2017-08-23  Pedro Alves  <palves@redhat.com>
+
+       PR remote/21852
+       * remote.c (add_current_inferior_and_thread): Set inferior_ptid
+       to null_ptid and switch to thread without reading the registers
+       after adding the inferior.
+
+2017-08-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
+       compile-gcc.
+       * compile/compile.c (compile_gcc, show_compile_gcc): New.
+       (compile_to_object): Implement compile_gcc.
+       (_initialize_compile): Install "set compile-gcc".  Initialize
+       compile_gcc.
+
+2017-08-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile.c (compile_to_object): Conditionally call
+       set_verbose.  Conditionally call compile or compile_v0.
+
+2017-08-07  Weimin Pan  <weimin.pan@oracle.com>
+
+       * sparc64-tdep.h: (adi_normalize_address): New export.
+       * sparc-nat.h: (open_adi_tag_fd): New export.
+       * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
+       * sparc64-linux-tdep.c:
+       (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
+       (sparc64_linux_handle_segmentation_fault): New function.
+       (sparc64_linux_init_abi): Register
+       sparc64_linux_handle_segmentation_fault
+       * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
+       (sparc64_addr_bits_remove): New function.
+       (sparc64_init_abi): Register sparc64_addr_bits_remove.
+       (MAX_PROC_NAME_SIZE): New macro.
+       (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
+       (sparc64adilist): New variable.
+       (adi_proc_list): New variable.
+       (find_adi_info): New function.
+       (add_adi_info): New function.
+       (get_adi_info_proc): New function.
+       (get_adi_info): New function.
+       (info_adi_command): New function.
+       (read_maps_entry): New function.
+       (adi_available): New function.
+       (adi_normalize_address): New function.
+       (adi_align_address): New function.
+       (adi_convert_byte_count): New function.
+       (adi_tag_fd): New function.
+       (adi_is_addr_mapped): New function.
+       (adi_read_versions): New function.
+       (adi_write_versions): New function.
+       (adi_print_versions): New function.
+       (do_examine): New function.
+       (do_assign): New function.
+       (adi_examine_command): New function.
+       (adi_assign_command): New function.
+       (_initialize_sparc64_adi_tdep): New function.
+
+2017-08-22  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * breakpoint.c (breakpoints_info): Rename to ...
+       (info_breakpoints_command): ... this.
+       (watchpoints_info): Rename to ...
+       (info_watchpoints_command): ... this.
+       (tracepoints_info): Rename to ...
+       (info_tracepoints_command): ... this.
+       (_initialize_breakpoint): Adjust.
+       * dcache.c (dcache_info): Rename to ...
+       (info_display_command): ... this.
+       (_initialize_dcache): Adjust.
+       * frame.h (args_info): Rename to ...
+       (info_args_command): ... this.
+       (locals_info): Rename to ...
+       (info_locals_command): ... this.
+       * infcmd.c (nofp_registers_info): Rename to ...
+       (info_registers_command): ... this.
+       (float_info): Rename to ...
+       (info_float_command): ... this.
+       (program_info): Rename to ...
+       (info_program_command): ... this.
+       (all_registers_info): Rename to ...
+       (info_all_registers_command): ... this.
+       (vector_info): Rename to ...
+       (info_vector_command): ... this.
+       (float_info): Rename to ...
+       (info_float_command): ... this.
+       (_initialize_infcmd): Adjust.
+       * inferior.h (term_info): Rename to ...
+       (info_terminal_command): ... this.
+       * inflow.c (term_info): Rename to ...
+       (info_terminal_command): ... this.
+       (_initialize_inflow): Adjust.
+       * infrun.c (signals_info): Rename to ...
+       (info_signals_command): ... this.
+       (_initialize_infrun): Adjust.
+       * objc-lang.c (classes_info): Rename to ...
+       (info_classes_command): ... this.
+       (selectors_info): Rename to ...
+       (info_selectors_command): ... this.
+       (_initialize_objc_language): Adjust.
+       * printcmd.c (sym_info): Rename to ...
+       (info_symbol_command): ... this.
+       (address_info): Rename to ...
+       (info_address_command): ... this.
+       (display_info): Rename to ...
+       (info_display_command): ... this.
+       (_initialize_printcmd): Adjust.
+       * reverse.c (bookmarks_info): Rename to ...
+       (info_breakpoints_command): ... this.
+       (_initialize_reverse): Adjust.
+       * ser-go32.c (dos_info): Rename to ...
+       (info_serial_command): ... this.
+       (_initialize_ser_dos): Adjust.
+       * skip.c (skip_info): Rename to ...
+       (info_skip_command): ... this.
+       (_initialize_step_skip): Adjust.
+       * source.c (line_info): Rename to ...
+       (info_line_command): ... this.
+       (source_info): Rename to ...
+       (info_source_command)
+       * stack.c (frame_info): Rename to ...
+       (info_frame_command): ... this.
+       (locals_info): Rename to ...
+       (info_locals_command): ... this.
+       (args_info): Rename to ...
+       (info_args_command): ... this.
+       (_initialize_stack): Adjust.
+       * symtab.c (sources_info): Rename to ...
+       (info_sources_command): ... this.
+       (variables_info): Rename to ...
+       (info_variables_command): ... this.
+       (functions_info): Rename to ...
+       (info_functions_command): ... this.
+       (types_info): Rename to ...
+       (info_types_command): ... this.
+       (_initialize_symtab): Adjust.
+       * target.c (target_info): Rename to ...
+       (info_target_command): ... this.
+       (initialize_targets): Adjust.
+       * tracepoint.c (tvariables_info): Rename to ...
+       (info_tvariables_command): ... this.
+       (scope_info): Rename to ...
+       (info_scope_command): ... this.
+       (trace_dump_actions): Adjust.
+       (_initialize_tracepoint): Adjust.
+
+2017-08-22  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.h (install_breakpoint): Update.
+       * breakpoint.c (add_solib_catchpoint): Update.
+       (install_breakpoint): Change argument to a std::unique_ptr.
+       (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
+       (create_breakpoint_sal, create_breakpoint): Update.
+       (watch_command_1, catch_exec_command_1)
+       (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
+       (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
+       Return the breakpoint.
+       (set_raw_breakpoint_without_location, set_raw_breakpoint)
+       (new_single_step_breakpoint): Update.
+       * break-catch-throw.c (handle_gnu_v3_exceptions): Use
+       std::unique_ptr.
+       * break-catch-syscall.c (create_syscall_event_catchpoint): Use
+       std::unique_ptr.
+       * break-catch-sig.c (create_signal_catchpoint): Use
+       std::unique_ptr.
+       * ada-lang.c (create_ada_exception_catchpoint): Use
+       std::unique_ptr.
+
+2017-08-22  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
+
+2017-08-22  Tom Tromey  <tom@tromey.com>
+
+       * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
+       (lookup_partial_symbol): Update.
+
+2017-08-22  Tom Tromey  <tom@tromey.com>
+
+       * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
+       * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
+       (find_and_open_source, symtab_to_fullname): Update.
+       * psymtab.c (psymtab_to_fullname): Update.
+
+2017-08-22  Tom Tromey  <tom@tromey.com>
+
+       * 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  <tom@tromey.com>
+
+       * 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  <tom@tromey.com>
+
+       * 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  <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.