+2017-04-04 John Baldwin <jhb@FreeBSD.org>
+
+ * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
+ (ALLDEPFILES): Remove alpha-fbsd-tdep.c
+ * NEWS: Mention that support for FreeBSD/alpha was removed.
+ * alpha-fbsd-tdep.c: Delete file.
+ * config/alpha/fbsd.mh: Delete file.
+ * configure.host: Delete alpha*-*-freebsd* and
+ alpha*-*-kfreebsd*-gnu.
+ * configure.tgt: Delete alpha*-*-freebsd* and
+ alpha*-*-kfreebsd*-gnu.
+
+2017-04-04 John Baldwin <jhb@FreeBSD.org>
+
+ * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
+ amd64bsd_store_inferior_registers): Use ptid from regcache.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
+ data fields, make them private and add "m_" prefixes.
+ (lnp_state_machine::lnp_state_machine): New ctor.
+ (record_line, check_line_address, handle_set_discriminator)
+ (handle_set_address, handle_advance_pc, handle_special_opcode)
+ (handle_advance_line, handle_set_file, handle_negate_stmt)
+ (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
+ (end_sequence, advance_line): New methods.
+ (m_gdbarch, m_record_lines_p): New fields.
+ (lnp_reader_state): Delete.
+ (dwarf_record_line): Rename to ...
+ (lnp_state_machine::record_line): ... adjust.
+ (init_lnp_state_machine): Delete.
+ (lnp_state_machine::lnp_state_machine): New.
+ (check_line_address): Rename to ...
+ (lnp_state_machine::check_line_address): This.
+ (dwarf_decode_lines_1): Remove reference to "reader_state".
+ Adjust lnp_state_machine having a non-default ctor. Use bool.
+ State machine internal state manipulation moved to
+ lnp_state_machine methods.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/offset-type-selftests.c.
+ (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
+ * common/offset-type.h: New file.
+ * common/preprocessor.h: New file.
+ * common/traits.h: New file.
+ * common/valid-expr.h: New file.
+ * dwarf2expr.c: Include "common/underlying.h". Adjust to use
+ sect_offset and cu_offset strong typedefs throughout.
+ * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
+ typedefs throughout.
+ * dwarf2loc.c: Include "common/underlying.h". Adjust to use
+ sect_offset and cu_offset strong typedefs throughout.
+ * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
+ typedefs throughout.
+ * gdbtypes.h: Include "common/offset-type.h".
+ (cu_offset): Now an offset type (strong typedef) instead of a
+ struct.
+ (sect_offset): Likewise.
+ (union call_site_parameter_u): Rename "param_offset" field to
+ "param_cu_off".
+ * unittests/offset-type-selftests.c: New file.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * common/underlying.h: New file.
+ * dwarf2read.c: Include "common/gdb_optional.h" and
+ "common/underlying.h".
+ (dir_index, file_name_index): New types.
+ (file_entry): Use them.
+ (file_entry::include): Use to_underlying.
+ (line_header::add_file_name): Use dir_index.
+ (read_formatted_entries): Use gdb::optional. Read form before
+ writting to file_entry.
+ (dwarf_decode_line_header): Use dir_index.
+ (lnp_state_machine::current_file): Use to_underlying.
+ (lnp_state_machine::file): Change type to file_name_index.
+ (dwarf_record_line): Use to_underlying.
+ (init_lnp_state_machine): Use file_name_index.
+ (dwarf_decode_lines_1): Use dir_index and file_name_index.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
+ operator bool, has_value and get methods.
+
+2017-04-04 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (struct file_entry): Add ctors, and initialize all
+ fields.
+ (line_header): Initialize all data fields. Change type of
+ standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
+ Change type of include_dirs to std::vector<const char *>. Remove
+ num_include_dirs, include_dirs_size. Change type of file_names to
+ std::vector<file_entry>. Remove num_file_names, file_names_size.
+ (line_header::line_header): New.
+ (line_header::add_include_dir, line_header::add_file_name): New
+ methods.
+ (line_header::include_dir_at): Remove NULL check.
+ (line_header::file_name_at): Add const overload.
+ (line_header_up): New unique_ptr typedef.
+ (dw2_get_file_names_reader): Use line_header_up. Adjust to use
+ std::vector. Remove free_line_header call.
+ (dwarf2_build_include_psymtabs): Use line_header_up. Remove
+ free_line_header call.
+ (free_cu_line_header): Delete.
+ (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
+ (setup_type_unit_groups): Use line_header_up instead of cleanups.
+ Adjust to use std::vector.
+ (free_line_header): Delete.
+ (free_line_header_voidp): Use delete.
+ (add_include_dir): Replace with ...
+ (line_header::add_include_dir): ... this method. Use std::vector.
+ (add_file_name): Replace with ...
+ (line_header::add_file_name): ... this method. Use std::vector.
+ (add_include_dir_stub): Delete.
+ (read_formatted_entries): Remove memset.
+ (dwarf_decode_line_header): Return a line_header_up instead of a
+ raw pointer. Remove cleanup handling. Pass lambdas to
+ read_formatted_entries. Adjust to use line_header methods.
+ (dwarf_decode_lines_1): Adjust to use line_header methods.
+ (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
+ use std::vector.
+
+2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * remote.c (set_general_thread, set_continue_thread): Use ptid_t
+ instead of struct ptid.
+
+2017-05-04 Alan Hayward <alan.hayward@arm.com>
+
+ * frame.c (get_frame_register_bytes): Unwind using value.
+ (put_frame_register_bytes): Likewise.
+
+2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
+
+2017-03-29 Yao Qi <yao.qi@linaro.org>
+
+ * gdbthread.h (struct thread_info): Declare constructor and
+ destructor. Add some in-class member initializers.
+ * thread.c (free_thread): Remove.
+ (init_thread_list): Call delete instead of free_thread.
+ (new_thread): Call thread_info constructor.
+ (thread_info::thread_info): New function.
+ (thread_info::~thread_info): New function.
+ (delete_thread_1): Call delete instead of free_thread.
+ (make_cleanup_restore_current_thread): Move tp and frame to
+ inner block.
+
+2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
+ (arc_skip_prologue): Likewise.
+ (arc_make_frame_cache): Likewise.
+ (arc_pv_get_operand): New function.
+ (arc_is_in_prologue): Likewise.
+ (arc_analyze_prologue): Likewise.
+ (arc_print_frame_cache): Likewise.
+ (MAX_PROLOGUE_LENGTH): New constant.
+
+2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * configure.tgt: Add arc-insn.o.
+ * arc-tdep.c (arc_delayed_print_insn): Make non-static.
+ (dump_arc_instruction_command): New function.
+ (arc_fprintf_disasm): Likewise.
+ (arc_disassemble_info): Likewise.
+ (arc_insn_get_operand_value): Likewise.
+ (arc_insn_get_operand_value_signed): Likewise.
+ (arc_insn_get_memory_base_reg): Likewise.
+ (arc_insn_get_memory_offset): Likewise.
+ (arc_insn_get_branch_target): Likewise.
+ (arc_insn_dump): Likewise.
+ (arc_insn_get_linear_next_pc): Likewise.
+ * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
+ (arc_disassemble_info): Likewise.
+ (arc_insn_get_branch_target): Likewise.
+ (arc_insn_get_linear_next_pc): Likewise.
+ * NEWS: Mention new "maint print arc arc-instruction".
+
+2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * arc-tdep (maintenance_print_arc_list): New variable.
+ (maintenance_print_arc_command): New function.
+
+2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
+ Add "limm" and "reserved".
+ (arc_cannot_fetch_register, arc_cannot_store_register): Add
+ ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
+ * arc-tdep.h (arc_regnum): Likewise.
+
+2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
+
+ * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
+ for THREADPTR register.
+ (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
+ register.
+ * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
+ (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
+ * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
+
+2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
+
+ * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
+ registers above gdbarch_num_regs (gdbarch) as privileged in
+ call0 ABI.
+
+2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
+
+ * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
+ for a single specified register or for all registers in
+ a0_base..a0_base + C0_NREGS range.
+ (supply_gregset_reg): Call regcache_raw_supply for a single
+ specified register or for all registers in a0_base..a0_base +
+ C0_NREGS range.
+
+2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
+
+ * arch/xtensa.h (C0_NREGS): Add definition.
+ * xtensa-tdep.c (C0_NREGS): Remove definition.
+
+2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
+
+ * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
+ Drop xtensa_default_isa initialization.
+ (xtensa_gdbarch_init): Initialize xtensa_default_isa.
+
+2017-03-27 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (file_entry) <dir_index>: Add comment.
+ (file_entry::include_dir): New method.
+ (line_header::include_dir_at, line_header::file_name_at): New
+ methods.
+ (setup_type_unit_groups, setup_type_unit_groups)
+ (psymtab_include_file_name): Simplify using the new methods.
+ (lnp_state_machine) <the_line_header>: New field.
+ <file>: Add comment.
+ (lnp_state_machine::current_file): New method.
+ (dwarf_record_line): Simplify using the new methods.
+ (init_lnp_state_machine): Initialize the "the_line_header" field.
+ (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
+ Simplify using the new methods.
+
2017-03-27 Pedro Alves <palves@redhat.com>
* cp-name-parser.y (make_empty): Delete.