+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ * common/ptid.c (ptid_get_tid): Remove.
+ * common/ptid.h (ptid_get_tid): Don't declare.
+ * ada-tasks.c: Update.
+ * aix-thread.c: Update.
+ * bsd-uthread.c: Update.
+ * darwin-nat.c: Update.
+ * fbsd-nat.c: Update.
+ * i386-darwin-nat.c: Update.
+ * infrun.c: Update.
+ * linux-tdep.c: Update.
+ * nto-procfs.c: Update.
+ * ppc-ravenscar-thread.c: Update.
+ * python/py-infthread.c: Update.
+ * ravenscar-thread.c: Update.
+ * sol-thread.c: Update.
+ * sparc-ravenscar-thread.c: Update.
+ * windows-nat.c: Update.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ * common/ptid.c (ptid_get_lwp): Remove.
+ * common/ptid.h (ptid_get_lwp): Don't declare.
+ * aarch64-linux-nat.c: Update.
+ * ada-tasks.c: Update.
+ * aix-thread.c: Update.
+ * amd64-linux-nat.c: Update.
+ * arm-linux-nat.c: Update.
+ * corelow.c: Update.
+ * fbsd-nat.c: Update.
+ * fbsd-tdep.c: Update.
+ * gnu-nat.c: Update.
+ * i386-cygwin-tdep.c: Update.
+ * i386-gnu-nat.c: Update.
+ * i386-linux-nat.c: Update.
+ * ia64-linux-nat.c: Update.
+ * inf-ptrace.c: Update.
+ * infrun.c: Update.
+ * linux-fork.c: Update.
+ * linux-nat.c: Update.
+ * linux-tdep.c: Update.
+ * linux-thread-db.c: Update.
+ * mips-linux-nat.c: Update.
+ * nat/aarch64-linux-hw-point.c: Update.
+ * nat/aarch64-linux.c: Update.
+ * nat/linux-btrace.c: Update.
+ * nat/linux-osdata.c: Update.
+ * nat/linux-procfs.c: Update.
+ * nat/x86-linux-dregs.c: Update.
+ * obsd-nat.c: Update.
+ * ppc-fbsd-nat.c: Update.
+ * ppc-linux-nat.c: Update.
+ * procfs.c: Update.
+ * python/py-infthread.c: Update.
+ * ravenscar-thread.c: Update.
+ * remote.c: Update.
+ * s390-linux-nat.c: Update.
+ * sol-thread.c: Update.
+ * sol2-tdep.c: Update.
+ * spu-linux-nat.c: Update.
+ * x86-linux-nat.c: Update.
+ * xtensa-linux-nat.c: Update.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ * common/ptid.c (ptid_get_pid): Remove.
+ * common/ptid.h (ptid_get_pid): Don't declare.
+ * aarch64-linux-nat.c: Update.
+ * ada-lang.c: Update.
+ * aix-thread.c: Update.
+ * alpha-bsd-nat.c: Update.
+ * amd64-fbsd-nat.c: Update.
+ * amd64-linux-nat.c: Update.
+ * arm-linux-nat.c: Update.
+ * arm-nbsd-nat.c: Update.
+ * auxv.c: Update.
+ * break-catch-syscall.c: Update.
+ * breakpoint.c: Update.
+ * bsd-uthread.c: Update.
+ * corelow.c: Update.
+ * ctf.c: Update.
+ * darwin-nat.c: Update.
+ * fbsd-nat.c: Update.
+ * fbsd-tdep.c: Update.
+ * gcore.c: Update.
+ * gnu-nat.c: Update.
+ * hppa-nbsd-nat.c: Update.
+ * hppa-obsd-nat.c: Update.
+ * i386-fbsd-nat.c: Update.
+ * ia64-linux-nat.c: Update.
+ * inf-ptrace.c: Update.
+ * infcmd.c: Update.
+ * inferior.c: Update.
+ * inferior.h: Update.
+ * inflow.c: Update.
+ * infrun.c: Update.
+ * linux-fork.c: Update.
+ * linux-nat.c: Update.
+ * linux-tdep.c: Update.
+ * linux-thread-db.c: Update.
+ * m68k-bsd-nat.c: Update.
+ * mi/mi-interp.c: Update.
+ * mi/mi-main.c: Update.
+ * mips-linux-nat.c: Update.
+ * mips-nbsd-nat.c: Update.
+ * mips64-obsd-nat.c: Update.
+ * nat/aarch64-linux-hw-point.c: Update.
+ * nat/aarch64-linux.c: Update.
+ * nat/linux-btrace.c: Update.
+ * nat/linux-osdata.c: Update.
+ * nat/linux-procfs.c: Update.
+ * nat/x86-linux-dregs.c: Update.
+ * nto-procfs.c: Update.
+ * obsd-nat.c: Update.
+ * ppc-linux-nat.c: Update.
+ * ppc-nbsd-nat.c: Update.
+ * ppc-obsd-nat.c: Update.
+ * proc-service.c: Update.
+ * procfs.c: Update.
+ * python/py-inferior.c: Update.
+ * python/py-infthread.c: Update.
+ * ravenscar-thread.c: Update.
+ * record.c: Update.
+ * remote-sim.c: Update.
+ * remote.c: Update.
+ * rs6000-nat.c: Update.
+ * s390-linux-nat.c: Update.
+ * sh-nbsd-nat.c: Update.
+ * sol-thread.c: Update.
+ * sparc-nat.c: Update.
+ * sparc64-tdep.c: Update.
+ * spu-linux-nat.c: Update.
+ * spu-tdep.c: Update.
+ * target-debug.h: Update.
+ * target.c: Update.
+ * thread.c: Update.
+ * tid-parse.c: Update.
+ * tracefile-tfile.c: Update.
+ * vax-bsd-nat.c: Update.
+ * windows-nat.c: Update.
+ * x86-linux-nat.c: Update.
+ * x86-nat.c: Update.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ * common/ptid.c (pid_to_ptid): Remove.
+ * common/ptid.h (pid_to_ptid): Don't declare.
+ * aix-thread.c: Update.
+ * arm-linux-nat.c: Update.
+ * common/ptid.c: Update.
+ * common/ptid.h: Update.
+ * corelow.c: Update.
+ * ctf.c: Update.
+ * darwin-nat.c: Update.
+ * fbsd-nat.c: Update.
+ * fork-child.c: Update.
+ * gnu-nat.c: Update.
+ * go32-nat.c: Update.
+ * inf-ptrace.c: Update.
+ * infcmd.c: Update.
+ * inferior.c: Update.
+ * infrun.c: Update.
+ * linux-fork.c: Update.
+ * linux-nat.c: Update.
+ * nat/aarch64-linux-hw-point.c: Update.
+ * nat/fork-inferior.c: Update.
+ * nat/x86-linux-dregs.c: Update.
+ * nto-procfs.c: Update.
+ * obsd-nat.c: Update.
+ * procfs.c: Update.
+ * progspace.c: Update.
+ * remote.c: Update.
+ * rs6000-nat.c: Update.
+ * s390-linux-nat.c: Update.
+ * sol-thread.c: Update.
+ * spu-linux-nat.c: Update.
+ * target.c: Update.
+ * top.c: Update.
+ * tracefile-tfile.c: Update.
+ * windows-nat.c: Update.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ * common/ptid.h (ptid_build): Don't declare.
+ * common/ptid.c (ptid_build): Remove.
+ * aix-thread.c: Update.
+ * bsd-kvm.c: Update.
+ * bsd-uthread.c: Update.
+ * common/agent.c: Update.
+ * common/ptid.c: Update.
+ * common/ptid.h: Update.
+ * corelow.c: Update.
+ * darwin-nat.c: Update.
+ * fbsd-nat.c: Update.
+ * gnu-nat.c: Update.
+ * linux-fork.c: Update.
+ * linux-nat.c: Update.
+ * linux-thread-db.c: Update.
+ * nat/linux-osdata.c: Update.
+ * nat/linux-procfs.c: Update.
+ * nto-procfs.c: Update.
+ * obsd-nat.c: Update.
+ * proc-service.c: Update.
+ * procfs.c: Update.
+ * ravenscar-thread.c: Update.
+ * remote-sim.c: Update.
+ * remote.c: Update.
+ * sol-thread.c: Update.
+ * target.c: Update.
+ * windows-nat.c: Update.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ * infrun.c (follow_exec): Use exit_inferior_silent.
+ * inferior.c (exit_inferior_num_silent): Remove.
+ * inferior.h (exit_inferior_num_silent): Don't declare.
+
+2018-07-03 Tom Tromey <tom@tromey.com>
+
+ PR cli/23340:
+ * darwin-nat.c (darwin_attach_pid): Reset inferior and
+ inferior_ptid on error.
+
+2018-07-02 Maciej W. Rozycki <macro@mips.com>
+ Simon Marchi <simon.marchi@polymtl.ca>
+
+ PR tdep/8282
+ * disasm.h (gdb_disassembler): Add
+ `m_disassembler_options_holder'. member
+ * disasm.c (get_all_disassembler_options): New function.
+ (gdb_disassembler::gdb_disassembler): Use it.
+ (gdb_buffered_insn_length_init_dis): Likewise.
+ (gdb_buffered_insn_length): Adjust accordingly.
+ (set_disassembler_options): Handle options with arguments.
+ (show_disassembler_options_sfunc): Likewise. Add a leading new
+ line if showing options with descriptions.
+ (disassembler_options_completer): Adapt to using the
+ `disasm_options_and_args_t' structure.
+ * mips-tdep.c (mips_disassembler_options): New variable.
+ (mips_disassembler_options_o32): Likewise.
+ (mips_disassembler_options_n32): Likewise.
+ (mips_disassembler_options_n64): Likewise.
+ (gdb_print_insn_mips): Don't set `disassembler_options'.
+ (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
+ functions.
+ (mips_gdbarch_init): Always set `gdbarch_print_insn' to
+ `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
+ `gdbarch_disassembler_options_implicit' and
+ `gdbarch_valid_disassembler_options'.
+ * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
+ `disasm_options_and_args_t' structure.
+ * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
+ method.
+ (valid_disassembler_options): Switch from `disasm_options_t' to
+ the `disasm_options_and_args_t' structure.
+ * NEWS: Document `set disassembler-options' support for the MIPS
+ target.
+ * gdbarch.h: Regenerate.
+ * gdbarch.c: Regenerate.
+
+2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
+
+2018-06-29 Joel Brobecker <brobecker@adacore.com>
+
+ * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
+ parameter in call to amd64_target_description.
+ * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
+ * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
+ (amd64fbsd_init_abi): Likewise.
+ * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
+ * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
+ * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
+ * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * gdb/amd64-tdep.h (amd64_create_target_description): Add
+ "segments" parameter.
+ * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
+ (_initialize_amd64_tdep): Update call to
+ amd64_create_target_description.
+ (amd64_target_description): Add "segments" parameter. Adjust
+ the implementation to use it.
+ * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
+ call to amd64_create_target_description.
+ * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
+ * gdb/arch/amd64.h (amd64_create_target_description): Add
+ "segments" register.
+ * gdb/arch/amd64.c (amd64_create_target_description): Add
+ "segments" parameter. Call create_feature_i386_64bit_segments
+ only if SEGMENTS is true.
+ * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
+ call to amd64_create_target_description.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * thread.c (thread_target_id_str): New, factored out from ...
+ (print_thread_info_1): ... here. Use it to compute the max
+ "Target Id" column width.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * remote.c (remote_target::extra_thread_info): Delete
+ 'display_buf' and 'n' locals. from the cache, regardless of
+ packet mechanims is in use. Use cache for qThreadExtra and qP
+ methods too.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * blockframe.c (find_pc_sect_containing_function): New function.
+ * breakpoint.c (print_breakpoint_location): Don't call
+ find_pc_sect_function.
+ * linespec.c (create_sals_line_offset): Record the location's
+ symbol in the sal.
+ * linespec.c (convert_address_location_to_sals): Fill in sal's
+ symbol with find_pc_sect_containing_function.
+ * symtab.c (find_function_start_sal): Rename to ...
+ (find_function_start_sal_1): ... this.
+ (find_function_start_sal): Reimplement as wrapper around
+ find_function_start_sal_1, and use
+ find_pc_sect_containing_function to fill in the sal's symbol.
+ (find_function_start_sal(symbol*, bool)): Adjust.
+ * symtab.h (find_pc_function, find_pc_sect_function): Adjust
+ comments.
+ (find_pc_sect_containing_function): Declare.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * inline-frame.c (stopped_by_user_bp_inline_frame): Return
+ true if the the location has no symbol.
+
+2018-06-28 Tom Tromey <tom@tromey.com>
+
+ * NEWS: Mention --enable-codesign.
+ * silent-rules.mk (ECHO_SIGN): New variable.
+ * configure.ac: Add --enable-codesign.
+ * configure: Rebuild.
+ * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
+ (gdb$(EXEEXT)): Optionally invoke codesign.
+
+2018-06-28 Pedro Alves <palves@redhat.com>
+
+ * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
+ comments.
+ (switch_to_thread_no_regs): Adjust comment.
+ * infcmd.c (stop_pc): Delete.
+ (post_create_inferior, info_program_command): Replace references
+ to stop_pc with references to thread_info->suspend.stop_pc.
+ * inferior.h (stop_pc): Delete declaration.
+ * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
+ (handle_inferior_event_1, handle_signal_stop)
+ (process_event_stop_test, keep_going_stepped_thread)
+ (handle_step_into_function, handle_step_into_function_backward)
+ (print_stop_location): Replace references to stop_pc with
+ references to thread_info->suspend.stop_pc.
+ (struct infcall_suspend_state) <stop_pc>: Delete field.
+ (save_infcall_suspend_state, restore_infcall_suspend_state):
+ Remove references to inf_stat->stop_pc.
+ * linux-fork.c (fork_load_infrun_state): Likewise.
+ * record-btrace.c (record_btrace_set_replay): Likewise.
+ * record-full.c (record_full_goto_entry): Likewise.
+ * remote.c (print_one_stopped_thread): Likewise.
+ * target.c (target_resume): Extend comment.
+ * thread.c (set_executing_thread): New.
+ (set_executing): Use it.
+ (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
+ Remove references to stop_pc.
+
+2018-06-28 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
+ Moving fetching stop_pc until after ecs->event_thread is refreshed.
+
+2018-06-28 Tom Tromey <tom@tromey.com>
+
+ * coffread.c (coff_symfile_finish): Update.
+ * xcoffread.c (xcoff_symfile_finish): Update.
+ * elfread.c (elf_symfile_finish): Update.
+ * symfile.h (dwarf2_free_objfile): Don't declare.
+ * dwarf2read.c (_initialize_dwarf2_read): Use
+ register_objfile_data_with_cleanup.
+ (dwarf2_free_objfile): Now static. Change signature.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (add_symbol_file_command, _initialize_symfile): Add
+ option "-o" to add-symbol-file-load to add an offset to each
+ section's load address.
+ * symfile.c (set_objfile_default_section_offset): New function.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (add_symbol_file_command): Make sure that sections
+ with the same name are sorted in the same order.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
+ require the second argument. If omitted, load sections at the
+ addresses specified in the file.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (symbol_file_command, symbol_file_add_main_1)
+ (_initialize_symfile): Add option "-o" to symbol-file to add an
+ offset to each section of the symbol file.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * MAINTAINERS (Write After Approval): Add Petr Tesarik.
+
+2018-06-27 Tom Tromey <tom@tromey.com>
+
+ * stack.c (_initialize_stack): Update "func" help text.
+
+2018-06-27 Tom Tromey <tom@tromey.com>
+
+ * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
+ std::vector.
+ (unwind_infopy_str, pyuw_create_unwind_info)
+ (unwind_infopy_add_saved_register, pyuw_sniffer)
+ (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
+ Update.
+ (struct saved_reg): Add constructor.
+ <value>: Now a gdbpy_ref<>.
+
+2018-06-27 Tom Tromey <tom@tromey.com>
+
+ * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in: Format using autopep8.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
+ (type_lookup_function): Recognize CORE_ADDR values.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
+ print tag_name.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
+ <__lt__>: Add.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py: Move to...
+ * gdb-gdb.py.in: ... here.
+ * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
+ * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
+ dependencies.
+ (distclean): Remove gdb-gdb.py when cleaning.
+ (gdb-gdb.py, gdb-gdb.gdb): New rules.
+ * configure: Re-generate.
+
+2018-06-27 Pedro Alves <palves@redhat.com>
+
+ * proc-service.c (get_ps_regcache): New.
+ (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
+ (ps_lsetfpregs): Use it.
+
+2018-06-27 Omair Javaid <omair.javaid@linaro.org>
+
+ PR gdb/21695
+ * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
+ (dwarf_decode_lines_1): Adjust.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
+ override.
+ <info_proc>: Likewise.
+
+2018-06-26 Joel Brobecker <brobecker@adacore.com>
+
+ * windows-nat.c (do_windows_fetch_inferior_registers): Rename
+ to windows_fetch_one_register, and only handle the case of
+ fetching one register. Move the code that reloads the context
+ and iterates over all registers if R is negative to...
+ (windows_nat_target::fetch_registers): ... here.
+ (do_windows_store_inferior_registers): Rename to
+ windows_store_one_register, and only handle the case of storing
+ one register. Move the code that handles the case where r is
+ negative to...
+ (windows_nat_target::store_registers) ... here.
+
+2018-06-26 Tom Tromey <tom@tromey.com>
+
+ PR rust/22574:
+ * typeprint.c (whatis_exp): Allow ptype/o for Rust.
+ * rust-lang.c (rust_print_struct_def): Add podata parameter.
+ Update.
+ (rust_internal_print_type): Add podata parameter.
+ (rust_print_type): Update.
+
+2018-06-26 Tom Tromey <tom@tromey.com>
+
+ * typeprint.h (struct print_offset_data) <update, finish,
+ maybe_print_hole>: New methods.
+ <indentation>: New constant.
+ * typeprint.c (print_offset_data::indentation): Define.
+ (print_offset_data::maybe_print_hole, print_offset_data::update)
+ (print_offset_data::finish): Move from c-typeprint.c and rename.
+ * c-typeprint.c (OFFSET_SPC_LEN): Remove.
+ (print_spaces_filtered_with_print_options): Update.
+ (c_print_type_union_field_offset, maybe_print_hole)
+ (c_print_type_struct_field_offset): Move to typeprint.c and
+ rename.
+ (c_type_print_base_struct_union): Update.
+
+2018-06-25 Pedro Alves <palves@redhat.com>
+
+ * gdbthread.h (thread_info_ref, delete_thread)
+ (delete_thread_silent, first_thread_of_inferior)
+ (any_thread_of_inferior, switch_to_thread)
+ (enable_thread_stack_temporaries)
+ (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
+ (get_last_thread_stack_temporary)
+ (value_in_thread_stack_temporaries, can_access_registers_thread):
+ Spell out "struct thread_info" instead of just "thread_info".
+ * inferior.h (notice_new_inferior): Likewise.
+
+2018-06-25 Pedro Alves <palves@redhat.com>
+
+ * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
+ pass thread_info pointer to delete_thread.
+ (windows_nat_target::detach): Pass inferior pointer to
+ detach_inferior.
+ * aix-thread.c (sync_threadlists): Pass thread_info pointer to
+ delete_thread.
+ * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
+ * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
+ and pass a thread_info pointer to delete_thread.
+ * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
+ pass thread_info pointer to delete_thread.
+ * go32-nat.c (go32_nat_target::mourn_inferior): Remove
+ delete_thread_silent call.
+ * procfs.c (procfs_target::detach): Pass inferior pointer to
+ detach_inferior.
+ (procfs_target::wait): Pass thread_info pointer to delete_thread.
+ * remote-sim.c (gdbsim_target::mourn_inferior): Remove
+ delete_thread_silent call.
+ * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
+ pass thread_info pointer to delete_thread.
+ (windows_nat_target::detach): Pass inferior pointer to
+ delete_inferior.
+
+2018-06-22 Alan Hayward <alan.hayward@arm.com>
+
+ * regcache.c (readable_regcache::read_part): Fix asserts.
+ (reg_buffer::raw_collect_part): New function.
+ (regcache::write_part): Fix asserts.
+ (reg_buffer::raw_supply_part): New function.
+ (regcache::transfer_regset_register): New helper function.
+ (regcache::transfer_regset): Call new functions.
+ (regcache_supply_regset): Use gdb_byte*.
+ (regcache::supply_regset): Likewise.
+ (regcache_collect_regset): Likewise.
+ (regcache::collect_regset): Likewise.
+ * regcache.h (reg_buffer::raw_collect_part): New declaration.
+ (reg_buffer::raw_supply_part): Likewise.
+ (regcache::transfer_regset_register): Likewise.
+ (regcache::transfer_regset): Use gdb_byte*.
+
+2018-06-22 Alan Hayward <alan.hayward@arm.com>
+
+ * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
+
+2018-06-21 Pedro Alves <palves@redhat.com>
+
+ * ada-lang.h (ada_get_task_number): Take a thread_info pointer
+ instead of a ptid_t. All callers adjusted.
+ * ada-tasks.c (ada_get_task_number): Likewise. All callers
+ adjusted.
+ (print_ada_task_info, display_current_task_id, task_command_1):
+ Adjust.
+ * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
+ inferior_thread.
+ (breakpoint_kind): Adjust.
+ (remove_breakpoints_pid): Rename to ...
+ (remove_breakpoints_inf): ... this. Adjust to take an inferior
+ pointer. All callers adjusted.
+ (bpstat_clear_actions): Use inferior_thread.
+ (get_bpstat_thread): New.
+ (bpstat_do_actions): Use it.
+ (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
+ to take a thread_info pointer. All callers adjusted.
+ (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
+ (breakpoint_re_set_thread): Use inferior_thread.
+ * breakpoint.h (struct inferior): Forward declare.
+ (bpstat_stop_status): Update.
+ (remove_breakpoints_pid): Delete.
+ (remove_breakpoints_inf): New.
+ * bsd-uthread.c (bsd_uthread_target::wait)
+ (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
+ * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
+ (maint_btrace_packet_history_cmd)
+ (maint_btrace_clear_packet_history_cmd): Adjust.
+ (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
+ inferior_thread.
+ * cli/cli-interp.c: Include "inferior.h".
+ * common/refcounted-object.h (struct
+ refcounted_object_ref_policy): New.
+ * compile/compile-object-load.c: Include gdbthread.h.
+ (store_regs): Use inferior_thread.
+ * corelow.c (core_target::close): Use current_inferior.
+ (core_target_open): Adjust to use first_thread_of_inferior and use
+ the current inferior.
+ * ctf.c (ctf_target::close): Adjust to use current_inferior.
+ * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
+ <thread>: ... this new field. All references adjusted.
+ (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
+ Take a thread_info pointer instead of a ptid_t.
+ * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
+ (dummy_frame_discard, register_dummy_frame_dtor): Take a
+ thread_info pointer instead of a ptid_t.
+ * elfread.c: Include "inferior.h".
+ (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
+ Use inferior_thread.
+ * eval.c (evaluate_subexp): Likewise.
+ * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
+ inferior_thread.
+ * gdb_proc_service.h (struct thread_info): Forward declare.
+ (struct ps_prochandle) <ptid>: Delete, replaced by ...
+ <thread>: ... this new field. All references adjusted.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
+ 'thread' parameter. All implementations and callers adjusted.
+ * gdbthread.h (thread_info) <set_running>: New method.
+ (delete_thread, delete_thread_silent): Take a thread_info pointer
+ instead of a ptid.
+ (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
+ (first_thread_of_process): Delete, replaced by ...
+ (first_thread_of_inferior): ... this new function. All callers
+ adjusted.
+ (any_live_thread_of_process): Delete, replaced by ...
+ (any_live_thread_of_inferior): ... this new function. All callers
+ adjusted.
+ (switch_to_thread, switch_to_no_thread): Declare.
+ (is_executing): Delete.
+ (enable_thread_stack_temporaries): Update comment.
+ <enable_thread_stack_temporaries>: Take a thread_info pointer
+ instead of a ptid_t. Incref the thread.
+ <~enable_thread_stack_temporaries>: Decref the thread.
+ <m_ptid>: Delete
+ <m_thr>: New.
+ (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
+ (get_last_thread_stack_temporary)
+ (value_in_thread_stack_temporaries, can_access_registers_thread):
+ Take a thread_info pointer instead of a ptid_t. All callers
+ adjusted.
+ * infcall.c (get_call_return_value): Use inferior_thread.
+ (run_inferior_call): Work with thread pointers instead of ptid_t.
+ (call_function_by_hand_dummy): Work with thread pointers instead
+ of ptid_t. Use thread_info_ref.
+ * infcmd.c (proceed_thread_callback): Access thread's state
+ directly.
+ (ensure_valid_thread, ensure_not_running): Use inferior_thread,
+ access thread's state directly.
+ (continue_command): Use inferior_thread.
+ (info_program_command): Use find_thread_ptid and access thread
+ state directly.
+ (proceed_after_attach_callback): Use thread state directly.
+ (notice_new_inferior): Take a thread_info pointer instead of a
+ ptid_t. All callers adjusted.
+ (exit_inferior): Take an inferior pointer instead of a pid. All
+ callers adjusted.
+ (exit_inferior_silent): New.
+ (detach_inferior): Delete.
+ (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
+ (gdb_inferior_id_to_pid, in_inferior_list): Delete.
+ (detach_inferior_command, kill_inferior_command): Use
+ find_inferior_id instead of valid_gdb_inferior_id and
+ gdb_inferior_id_to_pid.
+ (inferior_command): Use inferior and thread pointers.
+ * inferior.h (struct thread_info): Forward declare.
+ (notice_new_inferior): Take a thread_info pointer instead of a
+ ptid_t. All callers adjusted.
+ (detach_inferior): Delete declaration.
+ (exit_inferior, exit_inferior_silent): Take an inferior pointer
+ instead of a pid. All callers adjusted.
+ (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
+ (valid_gdb_inferior_id): Delete.
+ * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
+ (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
+ (struct displaced_step_inferior_state) <pid>: Delete, replaced by
+ ...
+ <inf>: ... this new field.
+ <step_ptid>: Delete, replaced by ...
+ <step_thread>: ... this new field.
+ (get_displaced_stepping_state): Take an inferior pointer instead
+ of a pid. All callers adjusted.
+ (displaced_step_in_progress_any_inferior): Adjust.
+ (displaced_step_in_progress_thread): Take a thread pointer instead
+ of a ptid_t. All callers adjusted.
+ (displaced_step_in_progress, add_displaced_stepping_state): Take
+ an inferior pointer instead of a pid. All callers adjusted.
+ (get_displaced_step_closure_by_addr): Adjust.
+ (remove_displaced_stepping_state): Take an inferior pointer
+ instead of a pid. All callers adjusted.
+ (displaced_step_prepare_throw, displaced_step_prepare)
+ (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
+ All callers adjusted.
+ (start_step_over): Adjust.
+ (infrun_thread_ptid_changed): Remove bit updating ptids in the
+ displaced step queue.
+ (do_target_resume): Adjust.
+ (fetch_inferior_event): Use inferior_thread.
+ (context_switch, get_inferior_stop_soon): Take an
+ execution_control_state pointer instead of a ptid_t. All callers
+ adjusted.
+ (switch_to_thread_cleanup): Delete.
+ (stop_all_threads): Use scoped_restore_current_thread.
+ * inline-frame.c: Include "gdbthread.h".
+ (inline_state) <inline_state>: Take a thread pointer instead of a
+ ptid_t. All callers adjusted.
+ <ptid>: Delete, replaced by ...
+ <thread>: ... this new field.
+ (find_inline_frame_state): Take a thread pointer instead of a
+ ptid_t. All callers adjusted.
+ (skip_inline_frames, step_into_inline_frame)
+ (inline_skipped_frames, inline_skipped_symbol): Take a thread
+ pointer instead of a ptid_t. All callers adjusted.
+ * inline-frame.h (skip_inline_frames, step_into_inline_frame)
+ (inline_skipped_frames, inline_skipped_symbol): Likewise.
+ * linux-fork.c (delete_checkpoint_command): Adjust to use thread
+ pointers directly.
+ * linux-nat.c (get_detach_signal): Likewise.
+ * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
+ (thread_db_notice_clone): Adjust.
+ (thread_db_find_new_threads_silently)
+ (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
+ a thread pointer instead of a ptid_t. All callers adjusted.
+ * mi/mi-cmd-var.c: Include "inferior.h".
+ (mi_cmd_var_update_iter): Update to use thread pointers.
+ * mi/mi-interp.c (mi_new_thread): Update to use the thread's
+ inferior directly.
+ (mi_output_running_pid, mi_inferior_count): Delete, bits factored
+ out to ...
+ (mi_output_running): ... this new function.
+ (mi_on_resume_1): Adjust to use it.
+ (mi_user_selected_context_changed): Adjust to use inferior_thread.
+ * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
+ directly.
+ (interrupt_thread_callback): : Adjust to use thread and inferior
+ pointers.
+ * proc-service.c: Include "gdbthread.h".
+ (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
+ * progspace-and-thread.c: Include "inferior.h".
+ * progspace.c: Include "inferior.h".
+ * python/py-exitedevent.c (create_exited_event_object): Adjust to
+ hold a reference to an inferior_object.
+ * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
+ inferior_thread.
+ * python/py-inferior.c (struct inferior_object): Give the type a
+ tag name instead of a typedef.
+ (python_on_normal_stop): No need to check if the current thread is
+ listed.
+ (inferior_to_inferior_object): Change return type to
+ inferior_object. All callers adjusted.
+ (find_thread_object): Delete, bits factored out to ...
+ (thread_to_thread_object): ... this new function.
+ * python/py-infthread.c (create_thread_object): Use
+ inferior_to_inferior_object.
+ (thpy_is_stopped): Use thread pointer directly.
+ (gdbpy_selected_thread): Use inferior_thread.
+ * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
+ field, replaced with ...
+ <thread>: ... this new field. All users adjusted.
+ (btpy_insn_or_gap_new): Drop const.
+ (btpy_list_new): Take a thread pointer instead of a ptid_t. All
+ callers adjusted.
+ * python/py-record.c: Include "gdbthread.h".
+ (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
+ a ptid_t. All callers adjusted.
+ (gdbpy_current_recording): Use inferior_thread.
+ * python/py-record.h (recpy_record_object) <ptid>: Delete
+ field, replaced with ...
+ <thread>: ... this new field. All users adjusted.
+ (recpy_element_object) <ptid>: Delete
+ field, replaced with ...
+ <thread>: ... this new field. All users adjusted.
+ (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
+ a ptid_t. All callers adjusted.
+ * python/py-threadevent.c: Include "gdbthread.h".
+ (get_event_thread): Use thread_to_thread_object.
+ * python/python-internal.h (struct inferior_object): Forward
+ declare.
+ (find_thread_object, find_inferior_object): Delete declarations.
+ (thread_to_thread_object, inferior_to_inferior_object): New
+ declarations.
+ * record-btrace.c: Include "inferior.h".
+ (require_btrace_thread): Use inferior_thread.
+ (record_btrace_frame_sniffer)
+ (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
+ (get_thread_current_frame): Use scoped_restore_current_thread and
+ switch_to_thread.
+ (get_thread_current_frame): Use thread pointer directly.
+ (record_btrace_replay_at_breakpoint): Use thread's inferior
+ pointer directly.
+ * record-full.c: Include "inferior.h".
+ * regcache.c: Include "gdbthread.h".
+ (get_thread_arch_regcache): Use the inferior's address space
+ directly.
+ (get_thread_regcache, registers_changed_thread): New.
+ * regcache.h (get_thread_regcache(thread_info *thread)): New
+ overload.
+ (registers_changed_thread): New.
+ (remote_target) <remote_detach_1>: Swap order of parameters.
+ (remote_add_thread): <remote_add_thread>: Return the new thread.
+ (get_remote_thread_info(ptid_t)): New overload.
+ (remote_target::remote_notice_new_inferior): Use thread pointers
+ directly.
+ (remote_target::process_initial_stop_replies): Use
+ thread_info::set_running.
+ (remote_target::remote_detach_1, remote_target::detach)
+ (extended_remote_target::detach): Adjust.
+ * stack.c (frame_show_address): Use inferior_thread.
+ * target-debug.h (target_debug_print_thread_info_pp): New.
+ * target-delegates.c: Regenerate.
+ * target.c (default_thread_address_space): Delete.
+ (memory_xfer_partial_1): Use current_inferior.
+ (target_detach): Use current_inferior.
+ (target_thread_address_space): Delete.
+ (generic_mourn_inferior): Use current_inferior.
+ * target.h (struct target_ops) <thread_address_space>: Delete.
+ (target_thread_address_space): Delete.
+ * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
+ pointers directly.
+ (delete_thread_1, delete_thread, delete_thread_silent): Take a
+ thread pointer instead of a ptid_t. Adjust all callers.
+ (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
+ (first_thread_of_process): Delete, replaced by ...
+ (first_thread_of_inferior): ... this new function. All callers
+ adjusted.
+ (any_thread_of_process): Rename to ...
+ (any_thread_of_inferior): ... this, and take an inferior pointer.
+ (any_live_thread_of_process): Rename to ...
+ (any_live_thread_of_inferior): ... this, and take an inferior
+ pointer.
+ (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
+ (value_in_thread_stack_temporaries)
+ (get_last_thread_stack_temporary): Take a thread pointer instead
+ of a ptid_t. Adjust all callers.
+ (thread_info::set_running): New.
+ (validate_registers_access): Use inferior_thread.
+ (can_access_registers_ptid): Rename to ...
+ (can_access_registers_thread): ... this, and take a thread
+ pointer.
+ (print_thread_info_1): Adjust to compare thread pointers instead
+ of ptids.
+ (switch_to_no_thread, switch_to_thread): Make extern.
+ (scoped_restore_current_thread::~scoped_restore_current_thread):
+ Use m_thread pointer directly.
+ (scoped_restore_current_thread::scoped_restore_current_thread):
+ Use inferior_thread.
+ (thread_command): Use thread pointer directly.
+ (thread_num_make_value_helper): Use inferior_thread.
+ * top.c (execute_command): Use inferior_thread.
+ * tui/tui-interp.c: Include "inferior.h".
+ * varobj.c (varobj_create): Use inferior_thread.
+ (value_of_root_1): Use find_thread_global_id instead of
+ global_thread_id_to_ptid.
+
+2018-06-21 Alan Hayward <alan.hayward@arm.com>
+
+ * regcache.c (readable_regcache::read_part): Avoid memcpy when
+ possible.
+ (regcache::write_part): Likewise.
+ (readable_regcache::cooked_read_part): Update comment.
+ (readable_regcache::cooked_write_part): Likewise.
+ * regcache.h: (readable_regcache::read_part): Likewise.
+ (regcache::write_part): Likewise.
+
+2018-06-21 Richard Bunt <richard.bunt@arm.com>
+ Dirk Schubert <dirk.schubert@arm.com>
+
+ * aarch64-linux-nat.c (post_attach): New.
+ (aarch64_linux_nat_target::post_attach): Override post_attach to
+ record the number of hardware debug registers.
+
+2018-06-20 Tom Tromey <tom@tromey.com>
+
+ * python/py-param.c (add_setshow_generic): Make parameters const.
+ (parmpy_init): Update.
+
+2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * regcache.h (regcache_cooked_read_ftype): Rename to...
+ (register_read_ftype): ...this, change type to function_view.
+ (class reg_buffer) <save>: Remove src parameter.
+ (readonly_detached_regcache) <readonly_detached_regcache>: Make
+ parameter non-const in first overload. Remove src parameter in
+ second overload.
+ * regcache.c (do_cooked_read): Remove.
+ (readonly_detached_regcache::readonly_detached_regcache): Make
+ parameter non-const, adjust call to other constructor.
+ (reg_buffer::save): Remove src parameter.
+ * frame.c (do_frame_register_read): Remove.
+ (frame_save_as_regcache): Use lambda function.
+ * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
+ parameter to ppu2spu_data *.
+ (ppu2spu_sniffer): Use lambda function.
+
+2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * record-full.c (record_full_target::insert_breakpoint): Remove
+ "struct" keyword, add const.
+
+2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
+ PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
+ * configure.ac: Remove AC_PREREQ, add missing quoting.
+ * gnulib/configure.ac: Modernize usage of
+ AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
+ * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
+ (AUTOMAKE_VERSION): Bump to 1.15.1.
+ * configure: Re-generate.
+ * config.in: Re-generate.
+ * aclocal.m4: Re-generate.
+ * gnulib/aclocal.m4: Re-generate.
+ * gnulib/config.in: Re-generate.
+ * gnulib/configure: Re-generate.
+ * gnulib/import/Makefile.in: Re-generate.
+
+2018-06-19 Pedro Alves <palves@redhat.com>
+
+ * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
+ (lookup_minimal_symbol_by_pc_section): ... here with
+ gdb_assert_not_reached added.
+
+2018-06-19 Pedro Alves <palves@redhat.com>
+
+ * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
+ parameter with a block parameter. Compare location's block symbol
+ with the frame's block instead of addresses.
+ (skip_inline_frames): Pass the current block instead of the
+ frame's address. Break out as soon as we determine the frame
+ should not be skipped.
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * solib-aix.c (solib_aix_get_section_offsets): Return
+ unique_xmalloc_ptr.
+ (solib_aix_solib_create_inferior_hook): Update.
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * solib-frv.c (frv_relocate_main_executable): Use
+ unique_xmalloc_ptr.
+ * solib-dsbt.c (dsbt_relocate_main_executable): Use
+ unique_xmalloc_ptr.
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * objfiles.h (inhibit_section_map_updates): Update.
+ (resume_section_map_updates, resume_section_map_updates_cleanup):
+ Remove.
+ * solib-svr4.c (svr4_handle_solib_event): Update.
+ * objfiles.c (inhibit_section_map_updates): Return
+ scoped_restore_tmpl<int>.
+ (resume_section_map_updates, resume_section_map_updates_cleanup):
+ Remove.
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * valprint.h (read_string): Update.
+ * valprint.c (read_string): Change type of "buffer".
+ (val_print_string): Update.
+ * python/py-value.c (valpy_string): Update.
+ * language.h (struct language_defn) <la_get_string>: Change
+ type of "buffer".
+ (default_get_string, c_get_string): Update.
+ * language.c (default_get_string): Change type of "buffer".
+ * guile/scm-value.c (gdbscm_value_to_string): Update.
+ * c-lang.c (c_get_string): Change type of "buffer".
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * ser-mingw.c (struct pipe_state_destroyer): New.
+ (pipe_state_up): New typedef.
+ (cleanup_pipe_state): Remove.
+ (pipe_windows_open): Use pipe_state_up. Don't release argv.
+
+2018-06-18 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.h (rust_yyerror): Don't declare.
+ * rust-lang.c (rust_language_defn): Update.
+ * rust-exp.y (yyerror): Now static.
+ * parse.c (parse_exp_in_context_1): Update.
+ * p-lang.h (p_yyerror): Don't declare.
+ * p-lang.c (p_language_defn): Update.
+ * p-exp.y (yyerror): Now static.
+ * opencl-lang.c (opencl_language_defn): Update.
+ * objc-lang.c (objc_language_defn): Update.
+ * m2-lang.h (m2_yyerror): Don't declare.
+ * m2-lang.c (m2_language_defn): Update.
+ * m2-exp.y (yyerror): Now static.
+ * language.h (struct language_defn) <la_error>: Remove.
+ * language.c (unk_lang_error): Remove.
+ (unknown_language_defn, auto_language_defn): Remove.
+ * go-lang.h (go_yyerror): Don't declare.
+ * go-lang.c (go_language_defn): Update.
+ * go-exp.y (yyerror): Now static.
+ * f-lang.h (f_yyerror): Don't declare.
+ * f-lang.c (f_language_defn): Update.
+ * f-exp.y (yyerror): Now static.
+ * d-lang.h (d_yyerror): Don't declare.
+ * d-lang.c (d_language_defn): Update.
+ * d-exp.y (yyerror): Now static.
+ * c-lang.h (c_yyerror): Don't declare.
+ * c-lang.c (c_language_defn, cplus_language_defn)
+ (asm_language_defn, minimal_language_defn): Update.
+ * c-exp.y (yyerror): Now static.
+ * ada-lang.h (ada_yyerror): Don't declare.
+ * ada-lang.c (ada_language_defn): Update.
+ * ada-exp.y (yyerror): Now static.
+
+2018-06-18 Alan Hayward <alan.hayward@arm.com>
+
+ * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
+ (store_sveregs_to_thread): Likewise.
+ (aarch64_linux_fetch_inferior_registers): Check for SVE.
+ (aarch64_linux_store_inferior_registers): Likewise.
+ * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
+ function.
+ (aarch64_sve_regs_copy_to_regcache): Likewise.
+ (aarch64_sve_regs_copy_from_regcache): Likewise.
+ * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
+ declaration.
+ (aarch64_sve_regs_copy_to_regcache): Likewise.
+ (aarch64_sve_regs_copy_from_regcache): Likewise.
+ (sve_context): Structure from Linux headers.
+ (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
+ (SVE_SIG_ZREG_SIZE): Likewise.
+ (SVE_SIG_PREG_SIZE): Likewise.
+ (SVE_SIG_FFR_SIZE): Likewise.
+ (SVE_SIG_REGS_OFFSET): Likewise.
+ (SVE_SIG_ZREGS_OFFSET): Likewise.
+ (SVE_SIG_ZREG_OFFSET): Likewise.
+ (SVE_SIG_ZREGS_SIZE): Likewise.
+ (SVE_SIG_PREGS_OFFSET): Likewise.
+ (SVE_SIG_PREG_OFFSET): Likewise.
+ (SVE_SIG_PREGS_SIZE): Likewise.
+ (SVE_SIG_FFR_OFFSET): Likewise.
+ (SVE_SIG_REGS_SIZE): Likewise.
+ (SVE_SIG_CONTEXT_SIZE): Likewise.
+ (SVE_PT_REGS_MASK): Likewise.
+ (SVE_PT_REGS_FPSIMD): Likewise.
+ (SVE_PT_REGS_SVE): Likewise.
+ (SVE_PT_VL_INHERIT): Likewise.
+ (SVE_PT_VL_ONEXEC): Likewise.
+ (SVE_PT_REGS_OFFSET): Likewise.
+ (SVE_PT_FPSIMD_OFFSET): Likewise.
+ (SVE_PT_FPSIMD_SIZE): Likewise.
+ (SVE_PT_SVE_ZREG_SIZE): Likewise.
+ (SVE_PT_SVE_PREG_SIZE): Likewise.
+ (SVE_PT_SVE_FFR_SIZE): Likewise.
+ (SVE_PT_SVE_FPSR_SIZE): Likewise.
+ (SVE_PT_SVE_FPCR_SIZE): Likewise.
+ (__SVE_SIG_TO_PT): Likewise.
+ (SVE_PT_SVE_OFFSET): Likewise.
+ (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
+ (SVE_PT_SVE_ZREG_OFFSET): Likewise.
+ (SVE_PT_SVE_ZREGS_SIZE): Likewise.
+ (SVE_PT_SVE_PREGS_OFFSET): Likewise.
+ (SVE_PT_SVE_PREG_OFFSET): Likewise.
+ (SVE_PT_SVE_PREGS_SIZE): Likewise.
+ (SVE_PT_SVE_FFR_OFFSET): Likewise.
+ (SVE_PT_SVE_FPSR_OFFSET): Likewise.
+ (SVE_PT_SVE_FPCR_OFFSET): Likewise.
+ (SVE_PT_SVE_SIZE): Likewise.
+ (SVE_PT_SIZE): Likewise.
+ (HAS_SVE_STATE): New define.
+
+2018-06-18 Alan Hayward <alan.hayward@arm.com>
+
+ * nat/aarch64-sve-linux-sigcontext.h: New file.
+ * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
+ new files.
+ (SVE_VQ_MIN): Likewise.
+ (SVE_VQ_MAX): Likewise.
+ (SVE_VL_MIN): Likewise.
+ (SVE_VL_MAX): Likewise.
+ (SVE_NUM_ZREGS): Likewise.
+ (SVE_NUM_PREGS): Likewise.
+ (sve_vl_valid): Likewise.
+ (struct user_sve_header): Likewise.
+
+2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
+ Richard Bunt <Richard.Bunt@arm.com>
+
+ * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
+ was requested by GDB.
+
+2018-06-15 Tom de Vries <tdevries@suse.de>
+
+ * MAINTAINERS (Write After Approval): Add Tom de Vries.
+
+2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gnulib/update-gnulib.sh: Print expected versions of
+ autoconf/aclocal.
+
+2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
+
+ * arch-utils.c (default_type_align): Use type_length_units.
+ * gdbtypes.c (type_align): Use type_length_units.
+
+2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * cli/cli-script.c (_initialize_cli_script): Fix online documentation
+ of 'define' command.
+
+2018-06-14 Tom de Vries <tdevries@suse.de>
+
+ PR cli/22573
+ * infcmd.c (print_return_value_1): Use get_user_print_options instead of
+ get_no_prettyformat_print_options.
+
+2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
+
+ * sparc-nat.h: Include target.h.
+ * sparc64-linux-nat.c (class sparc64_linux_nat_target)
+ <fetch_registers>: Remove this argument in function call.
+ <store_registers>: Remove this argument in function call, remove
+ extra semicolon.
+ <low_forget_process>: Call sparc64_forget_process instead of
+ sparc_forget_process.
+
+2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * procfs.c (_initialize_procfs): Use add_inf_child_target.
+ (procfs_target::make_corefile_notes): Adjust to new
+ target_read_alloc return type.
+
+2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
+ Stephen Roberts <stephen.roberts@arm.com>
+
+ PR gdb/22882
+ * infrun.c (fetch_inferior_event): If GDB is not proceeding then
+ run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
+ Move should_notify_stop local into more inner scope.
+
+2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
+ Stephen Roberts <stephen.roberts@arm.com>
+
+ PR gdb/22882
+ * infrun.c (resume_1): Add call to mark_async_event_handler.
+
+2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * infrun.c (do_target_wait): Change old version of $pc printed.
+
+2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
+
+ * dwarf2read.c (read_index_from_section): Rename to...
+ (read_gdb_index_from_section): ... this, update all callers.
+ (dwarf2_read_index): Rename to...
+ (dwarf2_read_gdb_index): ... this, update all callers.
+
+2018-06-11 John David Anglin <danglin@gcc.gnu.org>
+
+ * gdb/hppa-linux-nat.c
+ (hppa_linux_nat_target::fetch_inferior_registers): Rename to
+ hppa_linux_nat_target::fetch_registers.
+
+2018-06-11 Alan Hayward <alan.hayward@arm.com>
+
+ * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
+ * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
+ (AARCH64_DWARF_SVE_FFR): Likewise.
+ (AARCH64_DWARF_SVE_P0): Likewise.
+ (AARCH64_DWARF_SVE_Z0): Likewise.
+
+2018-06-11 Alan Hayward <alan.hayward@arm.com>
+
+ * common/common-regcache.h (raw_compare): New function.
+ * regcache.c (regcache::raw_compare): Likewise.
+ * regcache.h (regcache::raw_compare): New declaration.
+
+2018-06-11 Alan Hayward <alan.hayward@arm.com>
+
+ * common/common-regcache.h (reg_buffer_common): New structure.
+ * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
+ (reg_buffer::raw_supply): Likewise.
+ (reg_buffer::raw_supply_integer): Likewise.
+ (reg_buffer::raw_supply_zeroed): Likewise.
+ (reg_buffer::raw_collect): Likewise.
+ (reg_buffer::raw_collect_integer): Likewise.
+ * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
+ (reg_buffer::raw_supply): Likewise.
+ (reg_buffer::raw_supply_integer): Likewise.
+ (reg_buffer::raw_supply_zeroed): Likewise.
+ (reg_buffer::raw_collect): Likewise.
+ (reg_buffer::raw_collect_integer): Likewise.
+
+2018-06-10 Tom Tromey <tom@tromey.com>
+
+ * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
+ (class remote_state) <stop_reply_queue>: Now std::vector.
+ (remote_state::~remote_state)
+ (remote_target::stop_reply_queue_length): Update.
+ (struct queue_iter_param, remove_child_of_pending_fork)
+ (struct check_pending_event_prevents_wildcard_vcont_callback_data)
+ (check_pending_event_prevents_wildcard_vcont_callback)
+ (remove_stop_reply_for_inferior)
+ (remove_stop_reply_of_remote_state)
+ (remote_notif_remove_once_on_match)
+ (stop_reply_match_ptid_and_ws)
+ (remote_kill_child_of_pending_fork): Remove.
+ (remote_target::remove_new_fork_children)
+ (remote_target::check_pending_events_prevent_wildcard_vcont)
+ (remote_target::discard_pending_stop_replies)
+ (remote_target::discard_pending_stop_replies_in_queue)
+ (remote_target::remote_notif_remove_queued_reply)
+ (remote_target::queued_stop_reply)
+ (remote_target::push_stop_reply, remote_target::peek_stop_reply)
+ (remote_target::wait, remote_target::kill_new_fork_children)
+ (remote_target::async): Update.
+
+2018-06-10 Tom Tromey <tom@tromey.com>
+
+ * record-full.c (record_full_arch_list_cleanups): Remove.
+ (record_full_message): Use try/catch.
+ (record_full_wait_cleanups): Remove.
+ (record_full_wait_1): Use try/catch.
+ (record_full_restore): Likewise.
+
+2018-06-10 Tom Tromey <tom@tromey.com>
+
+ * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
+ declare VEC. Add constructor.
+ <in_target_beneath>: Now bool.
+ (record_full_breakpoints): Now a std::vector, static.
+ (record_full_sync_record_breakpoints)
+ (record_full_init_record_breakpoints)
+ (record_full_target::insert_breakpoint)
+ (record_full_target::remove_breakpoint): Update. Don't use XNEW.
+
+2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2read.c (process_cu_includes): Remove struct keyword.
+ * serial.c (serial_interface_lookup): Remove struct keyword.
+
+2018-06-10 Tom Tromey <tom@tromey.com>
+
+ * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
+ method.
+ * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
+ a method.
+ * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
+ method.
+ * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
+ "beneath" as a method.
+ * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
+ Use "beneath" as a method.
+
+2018-06-10 Tom Tromey <tom@tromey.com>
+
+ * tracefile.c (struct trace_file_writer_deleter): New.
+ <operator()>: Rename from trace_file_writer_xfree.
+ (trace_file_writer_up): New typedef.
+ (tsave_command, trace_save_tfile, trace_save_ctf): Update.
+
+2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
+
+ * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
+ <m_registers, m_register_status>: Change type to
+ std::unique_ptr.
+ * regcache.c (reg_buffer::reg_buffer): Use new instead of
+ XCNEWVEC.
+
+2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/common-regcache.h (enum register_status): Add
+ underlying type "signed char".
+ * regcache.h (reg_buffer) <m_register_status>: Change type to
+ register_status *.
+ * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
+ register_status instead of signed char.
+ (reg_buffer::save): Use REG_UNKNOWN instead of 0.
+ (reg_buffer::get_register_status): Remove cast.
+ (readable_regcache::raw_read): Remove cast.
+ (readable_regcache::cooked_read): Remove cast.
+
+2018-06-09 Tom Tromey <tom@tromey.com>
+
+ * source.c (reverse_search_command, forward_search_command): Use
+ scoped_fd.
+
+2018-06-09 Tom Tromey <tom@tromey.com>
+
+ * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
+ (serial_ops_list): Now static, std::vector.
+ (serial_interface_lookup, serial_add_interface): Update.
+
+2018-06-09 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (process_cu_includes): Update.
+ (process_full_comp_unit): Update.
+ * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
+ std::vector.
+
+2018-06-08 Paul Koning <paul_koning@dell.com>
+
+ PR gdb/23252
+
+ * python/python.c (do_start_initialization):
+ Avoid call to internal Python API.
+ (init__gdb_module): New function.
+
+2018-06-08 Gary Benson <gbenson@redhat.com>
+
+ * linux-thread-db.c (valprint.h): New include.
+ (struct check_thread_db_info): New structure.
+ (check_thread_db_on_load, tdb_testinfo): New static globals.
+ (check_thread_db, check_thread_db_callback): New functions.
+ (try_thread_db_load_1): Run integrity checks if requested.
+ (maintenance_check_libthread_db): New function.
+ (_initialize_thread_db): Register "maint check libthread-db"
+ and "maint set/show check-libthread-db".
+ * NEWS: Mention the above new commands.
+
+2018-06-08 Tom Tromey <tom@tromey.com>
+
+ * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
+ now a method.
+
+2018-06-08 Tom Tromey <tom@tromey.com>
+
+ * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
+
+2018-06-08 Tom Tromey <tom@tromey.com>
+
+ * common/btrace-common.h (struct btrace_data): Add constructor,
+ destructor, move assignment operator.
+ <empty, clear, fini>: New methods.
+ <format>: Initialize.
+ (btrace_data_init, btrace_data_fini, btrace_data_clear)
+ (btrace_data_empty): Don't declare.
+ * common/btrace-common.c (btrace_data_init): Remove.
+ (btrace_data::fini): Rename from btrace_data_fini.
+ (btrace_data::empty): Rename from btrace_data_empty.
+ (btrace_data::clear): Rename from btrace_data_clear. Return
+ bool.
+ * btrace.h (make_cleanup_btrace_data): Don't declare.
+ * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
+ (parse_xml_btrace): Update.
+ (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
+ (maint_btrace_clear_packet_history_cmd): Update.
+
+2018-06-07 Pedro Alves <palves@redhat.com>
+
+ * target.h (target_ops) <beneath>: Now a method. All references
+ updated.
+ (class target_stack): New.
+ * target.c (g_target_stack): New.
+ (g_current_top_target): Delete.
+ (current_top_target): Get the top target out of g_target_stack.
+ (target_stack::push, target_stack::unpush): New.
+ (push_target, unpush_target): Reimplement.
+ (target_is_pushed): Reimplement in terms of g_target_stack.
+ (target_ops::beneath, target_stack::find_beneath): New.
+
2018-06-07 Pedro Alves <palves@redhat.com>
* target.h (find_target_beneath): Delete declaration.
(aarch64_pseudo_write): Add V regs for SVE.
* aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
+2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
+ (sve_vl_from_vq): Likewise.
+
2018-06-05 Tom Tromey <tom@tromey.com>
* cli/cli-cmds.c (show_version): Update.
* symfile.c (addr_info_make_relative): Likewise.
* thread.c (value_in_thread_stack_temporaries): Likewise.
+2018-06-12 Weimin Pan <weimin.pan@oracle.com>
+
+ PR gdb/16841
+ * valops.c (value_struct_elt_for_reference): Call check_typedef on
+ aggregate type to get its real type before accessing it.
+
2018-05-29 Weimin Pan <weimin.pan@oracle.com>
* minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.