+2017-06-06 Yao Qi <yao.qi@linaro.org>
+
+ * regformats/regdef.h (set_register_cache): Remove the
+ declaration.
+
+2017-06-06 Alan Hayward <alan.hayward@arm.com>
+
+ * frame.c (frame_unwind_register_signed): Use
+ frame_unwind_register_value.
+
+2017-06-06 Pedro Alves <palves@redhat.com>
+
+ PR breakpoints/21553
+ * breakpoint.c (create_breakpoints_sal_default)
+ (init_breakpoint_sal, create_breakpoint_sal): Use
+ gdb::unique_xmalloc_ptr for string parameters.
+ (create_breakpoint): Constify 'extra_string' and 'cond_string'
+ parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
+ (base_breakpoint_create_breakpoints_sal)
+ (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
+ (strace_marker_create_breakpoints_sal)
+ (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
+ string parameters.
+ * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
+ gdb::unique_xmalloc_ptr for string parameters.
+ (create_breakpoint): Constify 'extra_string' and 'cond_string'
+ parameters.
+
+2017-06-06 Alan Hayward <alan.hayward@arm.com>
+
+ * alpha-tdep.c (alpha_register_to_value): Use
+ get_frame_register_value.
+ (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
+
+2017-06-06 Alan Hayward <alan.hayward@arm.com>
+
+ * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
+ (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
+ (ia64_value_to_register): Likewise.
+ (ia64_extract_return_value): Likewise.
+ (ia64_store_return_value): Likewise.
+ (ia64_push_dummy_call): Likewise.
+
+2017-06-04 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 8.0 released.
+
+2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
+
+ * x86-linux-nat.c (struct arch_lwp_info): Remove.
+
+2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
+ parameter.
+ (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
+
+2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
+
+ * event-loop.c (poll_timers): Unallocate timer using delete
+ instead of xfree.
+
+2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
+ (struct breakpoint) <~breakpoint>: New.
+ (struct watchpoint): Inherit from breakpoint.
+ <~watchpoint>: New.
+ <base>: Remove.
+ (struct tracepoint): Inherit from breakpoint.
+ <base>: Remove.
+ * breakpoint.c (longjmp_breakpoint_ops): Remove.
+ (struct longjmp_breakpoint): Inherit from breakpoint.
+ <~longjmp_breakpoint>: New.
+ <base>: Remove.
+ (new_breakpoint_from_type): Remove casts.
+ (watchpoint_in_thread_scope): Remove reference to base field.
+ (watchpoint_del_at_next_stop): Likewise.
+ (update_watchpoint): Likewise.
+ (watchpoint_check): Likewise.
+ (bpstat_check_watchpoint): Likewise.
+ (set_longjmp_breakpoint): Likewise.
+ (struct fork_catchpoint): Inherit from breakpoint.
+ <base>: Remove.
+ (struct solib_catchpoint): Inherit from breakpoint.
+ <~solib_catchpoint>: New.
+ <base>: Remove.
+ (dtor_catch_solib): Change to ...
+ (solib_catchpoint::~solib_catchpoint): ... this.
+ (breakpoint_hit_catch_solib): Remove reference to base field.
+ (add_solib_catchpoint): Likewise.
+ (create_fork_vfork_event_catchpoint): Likewise.
+ (struct exec_catchpoint): Inherit from breakpoint.
+ <~exec_catchpoint>: New.
+ <base>: Remove.
+ (dtor_catch_exec): Change to ...
+ (exec_catchpoint::~exec_catchpoint): ... this.
+ (dtor_watchpoint): Change to ...
+ (watchpoint::~watchpoint): ... this.
+ (watch_command_1): Remove reference to base field.
+ (catch_exec_command_1): Likewise.
+ (base_breakpoint_dtor): Change to ...
+ (breakpoint::~breakpoint): ... this.
+ (base_breakpoint_ops): Remove dtor field value.
+ (longjmp_bkpt_dtor): Change to ...
+ (longjmp_breakpoint::~longjmp_breakpoint): ... this.
+ (strace_marker_create_breakpoints_sal): Remove reference to base
+ field.
+ (delete_breakpoint): Don't manually call breakpoint destructor.
+ (create_tracepoint_from_upload): Remove reference to base field.
+ (trace_pass_set_count): Likewise.
+ (initialize_breakpoint_ops): Don't initialize
+ momentary_breakpoint_ops, don't set dtors.
+ * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
+ <~ada_catchpoint>: New.
+ <base>: Remove.
+ (create_excep_cond_exprs): Remove reference to base field.
+ (dtor_exception): Change to ...
+ (ada_catchpoint::~ada_catchpoint): ... this.
+ (dtor_catch_exception): Remove.
+ (dtor_catch_exception_unhandled): Remove.
+ (dtor_catch_assert): Remove.
+ (create_ada_exception_catchpoint): Remove reference to base
+ field.
+ (initialize_ada_catchpoint_ops): Don't set dtors.
+ * break-catch-sig.c (struct signal_catchpoint): Inherit from
+ breakpoint.
+ <~signal_catchpoint>: New.
+ <base>: Remove.
+ (signal_catchpoint_dtor): Change to ...
+ (signal_catchpoint::~signal_catchpoint): ... this.
+ (create_signal_catchpoint): Remove reference to base field.
+ (initialize_signal_catchpoint_ops): Don't set dtor.
+ * break-catch-syscall.c (struct syscall_catchpoint): Inherit
+ from breakpoint.
+ <~syscall_catchpoint>: New.
+ <base>: Remove.
+ (dtor_catch_syscall): Change to ...
+ (syscall_catchpoint::~syscall_catchpoint): ... this.
+ (create_syscall_event_catchpoint): Remove reference to base
+ field.
+ (initialize_syscall_catchpoint_ops): Don't set dtor.
+ * break-catch-throw.c (struct exception_catchpoint): Inherit
+ from breakpoint.
+ <~exception_catchpoint>: New.
+ <base>: Remove.
+ (dtor_exception_catchpoint): Change to ...
+ (exception_catchpoint::~exception_catchpoint): ... this.
+ (handle_gnu_v3_exceptions): Remove reference to base field.
+ (initialize_throw_catchpoint_ops): Don't set dtor.
+ * ctf.c (ctf_get_traceframe_address): Remove reference to base
+ field.
+ * remote.c (remote_get_tracepoint_status): Likewise.
+ * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
+ * tracefile.c (tracefile_fetch_registers): Likewise.
+ * tracepoint.c (actions_command): Likewise.
+ (validate_actionline): Likewise.
+ (tfind_1): Likewise.
+ (get_traceframe_location): Likewise.
+ (find_matching_tracepoint_location): Likewise.
+ (parse_tracepoint_status): Likewise.
+ * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
+
+2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * breakpoint.c (struct longjmp_breakpoint): New struct.
+ (is_tracepoint_type): Change return type to bool.
+ (is_longjmp_type): New function.
+ (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
+ (set_raw_breakpoint_without_location): Use
+ new_breakpoint_from_type.
+ (set_raw_breakpoint): Likewise.
+
+2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * breakpoint.c (new_breakpoint_from_type): New function.
+ (create_breakpoint_sal): Use new_breakpoint_from_type and
+ unique_ptr.
+ (create_breakpoint): Likewise.
+
+2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
+
+ * memattr.c (mem_info_command): Rename to ...
+ (info_mem_command): ... this.
+ (mem_enable_command): Rename to ...
+ (enable_mem_command): ... this.
+ (mem_disable_command): Rename to ...
+ (disable_mem_command): ... this.
+ (mem_delete_command): Rename to ...
+ (delete_mem_command): ... this.
+ (_initialize_mem): Adjust function names.
+
+2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
+
+ * btrace.c (handle_pt_insn_events): New.
+ (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
+ STATUS. Split into this and ...
+ (handle_pt_insn_event_flags): ... this.
+
+2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
+
+ * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
+ and struct pt_insn.resynced.
+ * configure: Regenerated.
+ * config.in: Regenerated.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_find_call_by_number): New function.
+ (ftrace_new_function): Store objects, not pointers.
+ (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
+ ftrace_new_gap, ftrace_update_function,
+ ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
+ btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
+ btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
+ btrace_ends_with_single_insn, btrace_call_get): Account for
+ btrace_thread_info::functions now storing objects.
+ * btrace.h (struct btrace_thread_info): Add constructor.
+ (struct btrace_thread_info) <functions>: Make std::vector.
+ (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
+ Initialize with default values.
+ * record-btrace.c (record_btrace_frame_sniffer): Account for
+ btrace_thread_info::functions now storing objects.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c: Remove typedef bfun_s.
+ (ftrace_new_gap): Directly add gaps to the list of gaps.
+ (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
+ ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
+ btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
+ instead of gdb VEC.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
+ ftrace_bridge_gap): Replace references to btrace_thread_info::segment
+ with btrace_thread_info::next_segment and
+ btrace_thread_info::prev_segment.
+ * btrace.h: Remove struct btrace_func_link.
+ (struct btrace_function): Replace pair of function segment pointers
+ with pair of indices.
+ * python/py-record-btrace.c (btpy_call_prev_sibling,
+ btpy_call_next_sibling): Replace references to
+ btrace_thread_info::segment with btrace_thread_info::next_segment and
+ btrace_thread_info::prev_segment.
+ * record-btrace.c (record_btrace_frame_this_id): Use
+ btrace_find_call_by_number.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_new_function, ftrace_fixup_level,
+ ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
+ btrace_insn_next, btrace_insn_prev): Remove references to
+ btrace_thread_info::flow.
+ * btrace.h (struct btrace_function): Remove FLOW.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_find_call_by_number): New function.
+ (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
+ ftrace_get_caller, ftrace_find_call, ftrace_new_return,
+ ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
+ ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
+ index.
+ * btrace.h (struct btrace_function): Turn UP into an index.
+ * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
+ as an index.
+ * record-btrace.c (record_btrace_frame_unwind_stop_reason,
+ record_btrace_frame_prev_register, record_btrace_frame_sniffer,
+ record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
+ ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
+ ftrace_update_function, ftrace_compute_global_level_offset,
+ btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
+ btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
+ btrace_insn_end, btrace_is_empty): Remove references to
+ btrace_thread_info::begin and btrace_thread_info::end.
+ * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
+ (struct btrace_thread_info) <functions>: Adjust comment.
+ * record-btrace.c (record_btrace_start_replaying): Remove reference to
+ btrace_thread_info::begin.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
+ ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
+ ftrace_update_function): Remove arguments that implicitly were always
+ BTINFO->END.
+ (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
+ Don't pass BTINFO->END.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
+ btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
+ btrace_find_insn_by_number): Replace function segment pointer with
+ index.
+ (btrace_insn_cmp): Simplify.
+ * btrace.h: (struct btrace_insn_iterator) Rename index to
+ insn_index. Replace function segment pointer with index into function
+ segment vector.
+ * record-btrace.c (record_btrace_call_history): Replace function
+ segment pointer use with index.
+ (record_btrace_frame_sniffer): Retrieve function call segment through
+ vector.
+ (record_btrace_set_replay): Remove defunc't safety check.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (btrace_ends_with_single_insn): New function.
+ (btrace_call_get, btrace_call_number, btrace_call_begin,
+ btrace_call_end, btrace_call_next, btrace_call_prev,
+ btrace_find_call_by_number): Use index into call segment vector
+ instead of pointer.
+ (btrace_call_cmp): Simplify.
+ * btrace.h (struct btrace_call_iterator): Replace function call segment
+ pointer with index into vector.
+ * record-btrace.c (record_btrace_call_history): Use index instead of
+ pointer.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (btrace_insn_begin, btrace_insn_end,
+ btrace_find_insn_by_number): Add btinfo to iterator.
+ * btrace.h (struct btrace_insn_iterator): Add btinfo.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
+ and save pointers directly.
+ (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
+ ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
+ ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
+ changed signature of functions.
+ (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
+ (btrace_fetch): Remove code that adds btrace_function pointers to
+ vector of btrace_functions.
+ (btrace_clear): Simplify freeing vector of btrace_functions.
+
+2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
+ Replace VEC_* with std::vector functions.
+ * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
+ (struct btrace_thread_info)<functions>: Change type to std::vector.
+
+2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
+
+ * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
+ "Removed targets and native configurations" up. Merge duplicate
+ "New commands" sub-sections. Add "New options" sub-sections.
+
+2017-05-26 Alan Hayward <alan.hayward@arm.com>
+
+ * defs.h (copy_integer_to_size): New declaration.
+ * findvar.c (copy_integer_to_size): New function.
+ (do_cint_test): New selftest function.
+ (copy_integer_to_size_test): Likewise.
+ (_initialize_findvar): Likewise.
+ * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
+ (mips_fbsd_collect_reg): Use raw_collect_integer.
+ * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
+ (mips64_fill_gregset): Use raw_collect_integer
+ (mips64_fill_fpregset): Use raw_supply_integer.
+ * regcache.c (regcache::raw_supply_integer): New function.
+ (regcache::raw_collect_integer): Likewise.
+ * regcache.h: (regcache::raw_supply_integer): New declaration.
+ (regcache::raw_collect_integer): Likewise.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * Makefile.in (SFILES): Add gdbarch-selftests.c.
+ (COMMON_OBS): Add gdbarch-selftests.o.
+ * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
+ * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
+ * gdbarch-selftests.c: New file.
+ * regcache.h (regcache) <~regcache>: Mark it virtual if
+ GDB_SELF_TEST.
+ <raw_write>: Likewise.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c (current_regcache): Change it to
+ regcache::current_regcache.
+ (regcache_observer_target_changed): Update.
+ (regcache_thread_ptid_changed): Make it a regcache static
+ method.
+ (regcache_thread_ptid_changed): Update.
+ (class regcache_access): New.
+ (current_regcache_test): Update.
+ (_initialize_regcache): Update.
+ * regcache.h: Include forward_list.
+ (regcache): Declare regcache_thread_ptid_changed and declare
+ registers_changed_ptid as friend.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * i387-tdep.c (i387_register_to_value): Use register_size
+ instead of TYPE_LENGTH.
+ * m68k-tdep.c (m68k_register_to_value): Likewise.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * i387-tdep.c (i387_convert_register_p): Return false if type
+ code isn't TYPE_CODE_FLT.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * alpha-tdep.c (alpha_convert_register_p): Return true if type
+ length is 4.
+ (alpha_register_to_value): Remove type length check.
+ (alpha_value_to_register): Likewise.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * ia64-tdep.c (ia64_convert_register_p): Check type's code is
+ TYPE_CODE_FLT.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * m68k-tdep.c (m68k_convert_register_p): Check type's code is
+ TYPE_CODE_FLT or not.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
+ * avr-tdep.c (avr_gdbarch_init): Likewise.
+ * bfin-tdep.c (bfin_gdbarch_init): Likewise.
+ * cris-tdep.c (cris_gdbarch_init): Likewise.
+ * ft32-tdep.c (ft32_gdbarch_init): Likewise.
+ * lm32-tdep.c (lm32_gdbarch_init): Likewise.
+ * m32r-tdep.c (m32r_gdbarch_init): Likewise.
+ * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
+ * mep-tdep.c (mep_gdbarch_init): Likewise.
+ * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
+ * mips-tdep.c (mips_gdbarch_init): Likewise.
+ * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
+ * moxie-tdep.c (moxie_gdbarch_init): Likewise.
+ * msp430-tdep.c (msp430_gdbarch_init): Likewise.
+ * sh64-tdep.c (sh64_gdbarch_init): Likewise.
+ * v850-tdep.c (v850_gdbarch_init): Likewise.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * selftest-arch.c (tests_with_arch): Call registers_changed
+ and reinit_frame_cache.
+ * selftest.c (run_self_tests): Likewise.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
+ (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * rl78-tdep.c (rl78_gdbarch_init): Don't call
+ set_gdbarch_print_insn.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * h8300-tdep.c (h8300_gdbarch_init): Don't call
+ set_gdbarch_print_insn.
+
+2017-05-24 Yao Qi <yao.qi@linaro.org>
+
+ * alpha-tdep.c (alpha_gdbarch_init): Don't call
+ set_gdbarch_print_insn.
+ * arc-tdep.c (arc_gdbarch_init): Likewise.
+ * arch-utils.c: include dis-asm.h.
+ (default_print_insn): New function.
+ * arch-utils.h (default_print_insn): Declare.
+ * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
+ * bfin-tdep.c (bfin_gdbarch_init): Likewise.
+ * cris-tdep.c (cris_delayed_get_disassembler): Remove.
+ (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
+ * frv-tdep.c (frv_gdbarch_init): Likewise.
+ * ft32-tdep.c (ft32_gdbarch_init): Likewise.
+ * gdbarch.sh (print_insn): Use default_print_insn.
+ * gdbarch.c: Regenerated.
+ * hppa-tdep.c (hppa_gdbarch_init): Likewise.
+ * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
+ * lm32-tdep.c (lm32_gdbarch_init): Likewise.
+ * m32c-tdep.c (m32c_gdbarch_init): Likewise.
+ * m32r-tdep.c (m32r_gdbarch_init): Likewise.
+ * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
+ (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
+ * m68k-tdep.c (m68k_gdbarch_init): Likewise.
+ * m88k-tdep.c (m88k_gdbarch_init): Likewise.
+ * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
+ * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
+ * moxie-tdep.c (moxie_gdbarch_init): Likewise.
+ * msp430-tdep.c (msp430_gdbarch_init): Likewise.
+ * mt-tdep.c (mt_gdbarch_init): Likewise.
+ * nds32-tdep.c (nds32_gdbarch_init): Likewise.
+ * nios2-tdep.c (nios2_print_insn): Remove.
+ (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
+ * rx-tdep.c (rx_gdbarch_init): Likewise.
+ * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
+ * score-tdep.c (score_print_insn): Remove.
+ (score_gdbarch_init): Don't call set_gdbarch_print_insn.
+ * sh-tdep.c (sh_gdbarch_init): Likewise.
+ * sh64-tdep.c (sh64_gdbarch_init): Likewise.
+ * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
+ * tic6x-tdep.c (tic6x_print_insn): Remove.
+ (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
+ * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
+ * v850-tdep.c (v850_gdbarch_init): Likewise.
+ * vax-tdep.c (vax_gdbarch_init): Likewise.
+ * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
+ * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
+
+2017-05-23 John Baldwin <jhb@FreeBSD.org>
+
+ * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
+ (MIPS_FP0_REGNUM): Remove.
+ (MIPS_FSR_REGNUM): Remove.
+ (mips_fbsd_supply_fpregs): Use mips_regnum.
+ (mips_fbsd_supply_gregs): Likewise.
+ (mips_fbsd_collect_fpregs): Likewise.
+ (mips_fbsd_collect_gregs): Likewise.
+
+2017-05-23 John Baldwin <jhb@FreeBSD.org>
+
+ * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
+ (getpfpregs_supplies): New function.
+ (mips_fbsd_fetch_inferior_registers): Remove early exit and use
+ getfpregs_supplies.
+ (mips_fbsd_store_inferior_registers): Likewise.
+
+2017-05-22 Pedro Alves <palves@redhat.com>
+
+ * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
+ maintainer.
+
+2017-05-22 Alan Hayward <alan.hayward@arm.com>
+
+ * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
+ (store_register): Likewise.
+ * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
+ (get_decimal_float_return_value): Likewise.
+ (do_ppc_sysv_return_value): Likewise.
+ (ppc64_sysv_abi_push_integer): Likewise.
+ (ppc64_sysv_abi_push_freg): Likewise.
+ (ppc64_sysv_abi_return_value_base): Likewise.
+ (ppc64_sysv_abi_return_value): Likewise.
+ * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
+ * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
+ * rs6000-nat.c: Likewise.
+ * rs6000-tdep.c (rs6000_register_to_value): Likewise.
+ (rs6000_value_to_register): Likewise.
+ * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
+
+2017-05-21 Tom Tromey <tom@tromey.com>
+
+ PR rust/21466:
+ * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
+ arrays as "[T]", not "[T; ]".
+
+2017-05-19 Tom Tromey <tom@tromey.com>
+
+ PR rust/21484:
+ * rust-lang.c (exp_descriptor_rust): New function.
+ (rust_language_defn): Use it.
+ * p-lang.c (pascal_language_defn): Update.
+ * opencl-lang.c (opencl_language_defn): Update.
+ * objc-lang.c (objc_language_defn): Update.
+ * m2-lang.c (m2_language_defn): Update.
+ * language.h (struct language_defn)
+ <la_watch_location_expression>: New member.
+ * language.c (unknown_language_defn, auto_language_defn)
+ (local_language_defn): Update.
+ * go-lang.c (go_language_defn): Update.
+ * f-lang.c (f_language_defn): Update.
+ * d-lang.c (d_language_defn): Update.
+ * c-lang.h (c_watch_location_expression): Declare.
+ * c-lang.c (c_watch_location_expression): New function.
+ (c_language_defn, cplus_language_defn, asm_language_defn)
+ (minimal_language_defn): Use it.
+ * breakpoint.c (watch_command_1): Call
+ la_watch_location_expression.
+ * ada-lang.c (ada_language_defn): Update.
+
+2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR tui/21482
+ * gdb_curses.h (NOMACROS): Define.
+ (NCURSES_NOMACROS): Define.
+
+2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR tui/21482
+ * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
+ arg to char *.
+ * tui/tui-wingeneral.c (box_win): Likewise.
+ * tui/tui-winsource.c (tui_erase_source_content): Likewise.
+ (tui_show_source_line): Likewise.
+ (tui_show_exec_info_content): Likewise.
+
+2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
+
+ * sparc-tdep.c (sparc_structure_return_p)
+ (sparc_arg_on_registers_p): New functions.
+ (sparc32_store_arguments): Use them.
+ * sparc64-tdep.c (sparc64_16_byte_align_p)
+ (sparc64_store_floating_fields, sparc64_extract_floating_fields):
+ Handle TYPE_CODE_ARRAY.
+
+2017-05-17 Yao Qi <yao.qi@linaro.org>
+
+ * cli/cli-decode.c (add_alias_cmd): New function.
+ * command.h (add_alias_cmd): Declare.
+ * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
+ instead call add_alias_cmd.
+
+2017-05-17 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (nat_extra_makefile_frag): Rename to ...
+ (nat_makefile_frag): ... this. All references updated.
+ * configure.ac: Likewise.
+ * configure.nat: Likewise. Enhance comments.
+ * configure: Regenerate.
+
+2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * procfs.c (procfs_create_inferior): Change prototype to match
+ definition.
+
+2017-05-13 Eli Zaretskii <eliz@gnu.org>
+
+ * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
+ C++ compiler warning.
+
+2017-05-12 Tom Tromey <tom@tromey.com>
+
+ PR rust/21483:
+ * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
+ recurse, just call value_struct_elt directly.
+
+2017-05-12 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
+ OP_RUST_ARRAY>: Fix.
+
+2017-05-12 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_print_subexp): Replace "return" with "break".
+
+2017-05-09 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c: Include <forward_list>.
+ (struct regcache_list): Remove.
+ (current_regcache): Update.
+ (get_thread_arch_aspace_regcache): Update for std::forward_list.
+ (regcache_thread_ptid_changed): Likewise.
+ (registers_changed_ptid): Likewise.
+ (current_regcache_size): Likewise.
+
+2017-05-09 Yao Qi <yao.qi@linaro.org>
+
+ * regcache.c [GDB_SELF_TEST]: Include selftest.h.
+ (current_regcache_size): New function.
+ (current_regcache_test): New function.
+ (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
+
+2017-05-08 Alan Hayward <alan.hayward@arm.com>
+
+ * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
+ (print_gp_register_row): Use get_frame_register_value.
+
+2017-05-08 Alan Hayward <alan.hayward@arm.com>
+
+ * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
+ (mips_supply_fpregset): Likewise.
+ (mips64_supply_gregset): Likewise.
+
+2017-05-08 Alan Hayward <alan.hayward@arm.com>
+
+ * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
+ regcache->raw_supply_zeroed.
+
+2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * configure.nat: Rearrange 'case' statements to match
+ host before cpu.
+
+2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * Makefile.in: Remove "@host_makefile_frag@". Add variables
+ NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
+ NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
+ "@nat_extra_makefile_frag@".
+ (Makefile): Remove dependency on "@frags@".
+ ($(GNULIB_BUILDDIR)/Makefile): Likewise.
+ (data-directory/Makefile): Likewise.
+ * config/aarch64/linux.mh: Deleted; moved contents to
+ "gdb/configure.nat".
+ * config/alpha/alpha-linux.mh: Likewise.
+ * config/alpha/nbsd.mh: Likewise.
+ * config/arm/linux.mh: Likewise.
+ * config/arm/nbsdelf.mh: Likewise.
+ * config/i386/cygwin.mh: Likewise.
+ * config/i386/cygwin64.mh: Likewise.
+ * config/i386/darwin.mh: Likewise.
+ * config/i386/fbsd.mh: Likewise.
+ * config/i386/fbsd64.mh: Likewise.
+ * config/i386/go32.mh: Likewise.
+ * config/i386/i386gnu.mh: Likewise.
+ * config/i386/i386sol2.mh: Likewise.
+ * config/i386/linux.mh: Likewise.
+ * config/i386/linux64.mh: Likewise.
+ * config/i386/mingw.mh: Likewise.
+ * config/i386/mingw64.mh: Likewise.
+ * config/i386/nbsd64.mh: Likewise.
+ * config/i386/nbsdelf.mh: Likewise.
+ * config/i386/nto.mh: Likewise.
+ * config/i386/obsd.mh: Likewise.
+ * config/i386/obsd64.mh: Likewise.
+ * config/i386/sol2-64.mh: Likewise.
+ * config/ia64/linux.mh: Likewise.
+ * config/m32r/linux.mh: Likewise.
+ * config/m68k/linux.mh: Likewise.
+ * config/m68k/nbsdelf.mh: Likewise.
+ * config/m68k/obsd.mh: Likewise.
+ * config/m88k/obsd.mh: Likewise.
+ * config/mips/fbsd.mh: Likewise.
+ * config/mips/linux.mh: Likewise.
+ * config/mips/nbsd.mh: Likewise.
+ * config/mips/obsd64.mh: Likewise.
+ * config/pa/linux.mh: Likewise.
+ * config/pa/nbsd.mh: Likewise.
+ * config/pa/obsd.mh: Likewise.
+ * config/powerpc/aix.mh: Likewise.
+ * config/powerpc/fbsd.mh: Likewise.
+ * config/powerpc/linux.mh: Likewise.
+ * config/powerpc/nbsd.mh: Likewise.
+ * config/powerpc/obsd.mh: Likewise.
+ * config/powerpc/ppc64-linux.mh: Likewise.
+ * config/powerpc/spu-linux.mh: Likewise.
+ * config/s390/linux.mh: Likewise.
+ * config/sh/nbsd.mh: Likewise.
+ * config/sparc/fbsd.mh: Likewise.
+ * config/sparc/linux.mh: Likewise.
+ * config/sparc/linux64.mh: Likewise.
+ * config/sparc/nbsd64.mh: Likewise.
+ * config/sparc/nbsdelf.mh: Likewise.
+ * config/sparc/obsd64.mh: Likewise.
+ * config/sparc/sol2.mh: Likewise.
+ * config/tilegx/linux.mh: Likewise.
+ * config/vax/nbsdelf.mh: Likewise.
+ * config/vax/obsd.mh: Likewise.
+ * config/xtensa/linux.mh: Likewise.
+ * config/i386/i386gnu.mn: New file, with excerpts from
+ "config/i386/i386gnu.mh".
+ * configure: Regenerate.
+ * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
+ *.mh files under "gdb/config".
+ * configure.nat: New file, with contents from the
+ "gdb/config/*/*.mh" files.
+
+2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * btrace.c (btrace_clear): Free insn vector.
+
+2017-05-05 Pedro Alves <palves@redhat.com>
+
+ * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
+ * configure: Regenerate.
+
+2017-05-04 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (SFILES): Add progspace-and-thread.c.
+ (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
+ (COMMON_OBS): Add progspace-and-thread.o.
+ * breakpoint.c: Include "progspace-and-thread.h".
+ (update_inserted_breakpoint_locations)
+ (insert_breakpoint_locations, create_longjmp_master_breakpoint):
+ Use scoped_restore_current_pspace_and_thread.
+ (create_std_terminate_master_breakpoint): Use
+ scoped_restore_current_program_space.
+ (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
+ (print_breakpoint_location): Use
+ scoped_restore_current_program_space.
+ (bp_loc_is_permanent): Use
+ scoped_restore_current_pspace_and_thread.
+ (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
+ (download_tracepoint_locations): Use
+ scoped_restore_current_pspace_and_thread.
+ (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
+ * exec.c (exec_close_1): Use scoped_restore_current_program_space.
+ (enum step_over_calls_kind): Moved from inferior.h.
+ (class scoped_restore_current_thread): New class.
+ * gdbthread.h (make_cleanup_restore_current_thread): Delete
+ declaration.
+ (scoped_restore_current_thread): New class.
+ * infcmd.c: Include "common/gdb_optional.h".
+ (continue_1, proceed_after_attach): Use
+ scoped_restore_current_thread.
+ (notice_new_inferior): Use scoped_restore_current_thread.
+ * inferior.c: Include "progspace-and-thread.h".
+ (restore_inferior, save_current_inferior): Delete.
+ (add_inferior_command, clone_inferior_command): Use
+ scoped_restore_current_pspace_and_thread.
+ * inferior.h (scoped_restore_current_inferior): New class.
+ * infrun.c: Include "progspace-and-thread.h" and
+ "common/gdb_optional.h".
+ (follow_fork_inferior): Use
+ scoped_restore_current_pspace_and_thread.
+ (scoped_restore_exited_inferior): New class.
+ (handle_vfork_child_exec_or_exit): Use
+ scoped_restore_exited_inferior,
+ scoped_restore_current_pspace_and_thread,
+ scoped_restore_current_thread and scoped_restore.
+ (fetch_inferior_event): Use scoped_restore_current_thread.
+ * linespec.c (decode_line_full, decode_line_1): Use
+ scoped_restore_current_program_space.
+ * mi/mi-main.c: Include "progspace-and-thread.h".
+ (exec_continue): Use scoped_restore_current_thread.
+ (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
+ (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
+ * proc-service.c (ps_pglobal_lookup): Use
+ scoped_restore_current_program_space.
+ * progspace-and-thread.c: New file.
+ * progspace-and-thread.h: New file.
+ * progspace.c (release_program_space, clone_program_space): Use
+ scoped_restore_current_program_space.
+ (restore_program_space, save_current_program_space)
+ (save_current_space_and_thread): Delete.
+ (switch_to_program_space_and_thread): Moved to
+ progspace-and-thread.c.
+ * progspace.h (save_current_program_space)
+ (save_current_space_and_thread): Delete declarations.
+ (scoped_restore_current_program_space): New class.
+ * remote.c (remote_btrace_maybe_reopen): Use
+ scoped_restore_current_thread.
+ * symtab.c: Include "progspace-and-thread.h".
+ (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
+ * thread.c (print_thread_info_1): Use
+ scoped_restore_current_thread.
+ (struct current_thread_cleanup): Delete.
+ (do_restore_current_thread_cleanup)
+ (restore_current_thread_cleanup_dtor): Rename/convert both to ...
+ (scoped_restore_current_thread::~scoped_restore_current_thread):
+ ... this new dtor.
+ (make_cleanup_restore_current_thread): Rename/convert to ...
+ (scoped_restore_current_thread::scoped_restore_current_thread):
+ ... this new ctor.
+ (thread_apply_all_command): Use scoped_restore_current_thread.
+ (thread_apply_command): Use scoped_restore_current_thread.
+ * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
+ * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
+
+2017-05-04 Pedro Alves <palves@redhat.com>
+
+ * thread.c (make_cleanup_restore_current_thread): Move
+ find_thread_ptid call before the is_stopped call. Assert that the
+ thread is found. Replace is_stopped call by checking the thread's
+ state directly. Remove unnecessary NULL-thread check.
+
+2017-05-04 Pedro Alves <palves@redhat.com>
+
+ * corelow.c (thread_section_name): New class.
+ (get_core_register_section, get_core_siginfo): Use it.
+
2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
* corelow.c (sniff_core_bfd): Remove extra semicolon.