+2017-12-30 Simon Marchi <simon.marchi@ericsson.com>
+
+ * dwarf2read.c (struct mapped_debug_names): Make final.
+ (struct mapped_index): Make final.
+
+2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/diagnostics.h
+ (DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES): New macro.
+ * amd64-linux-tdep.c (amd64_canonicalize_syscall): Use it.
+
+2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
+
+ * linux-thread-db.c (thread_db_detach): Remove call to
+ delete_thread_db_info.
+
+2017-12-28 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * target.h (enum target_object) <TARGET_OBJECT_HPUX_UREGS,
+ TARGET_OBJECT_HPUX_SOLIB_GOT>: Remove.
+
+2017-12-27 Franck Jullien <franck.jullien@gmail.com>
+ Stafford Horne <shorne@gmail.com>
+
+ * target-descriptions.c (tdesc_register_in_reggroup_p): Support
+ arbitrary strings.
+ (tdesc_use_registers): Add logic to register new reggroups.
+ (tdesc_reg::group): Update comment to indicate we allow
+ arbitrary strings.
+ * NEWS (Changes since GDB 8.0): Announce that GDB supports
+ arbitrary reggroups.
+
+2017-12-27 Stafford Horne <shorne@gmail.com>
+
+ * reggroups.c (reggroup_gdbarch_new): New function.
+ (reggroup_find): New function.
+ * reggroups.h (reggroup_gdbarch_new): New function.
+ (reggroup_find): New function.
+
+2017-12-27 Stafford Horne <shorne@gmail.com>
+
+ * reggroups.c (reggroups_init): Change to depend only on
+ obstack rather than gdbarch.
+ (reggroup_add): Remove logic for forcing premature init.
+ (_initialize_reggroup): Set `reggroups_data` with
+ gdbarch_data_register_pre_init() rather than
+ gdbarch_data_register_post_init().
+
+2017-12-27 Stafford Horne <shorne@gmail.com>
+
+ * infcmd.c (_initialize_infcmd): Add help for info reg $reggroup
+ and info all-registers $reggroup feature.
+
+2017-12-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * target-descriptions.c (print_c_tdesc)
+ <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
+
+2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
+ Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * target-descriptions.c (print_c_tdesc) <visit>: Don't output
+ field_type declaration, use printf_field_type_assignment
+ instead.
+ <printf_field_type_assignment>: New method.
+ * features/aarch64-core.c, features/aarch64-fpu.c
+ features/arc-arcompact.c, features/arc-v2.c,
+ features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c,
+ features/i386/32bit-mpx.c, features/i386/32bit-sse.c,
+ features/i386/64bit-avx512.c, features/i386/64bit-core.c,
+ features/i386/64bit-mpx.c, features/i386/64bit-sse.c,
+ features/i386/x32-core.c, features/or1k.c,
+ features/rs6000/powerpc-7400.c,
+ features/rs6000/powerpc-altivec32.c,
+ features/rs6000/powerpc-altivec32l.c,
+ features/rs6000/powerpc-altivec64.c,
+ features/rs6000/powerpc-altivec64l.c,
+ features/rs6000/powerpc-cell32l.c,
+ features/rs6000/powerpc-cell64l.c,
+ features/rs6000/powerpc-isa205-altivec32l.c,
+ features/rs6000/powerpc-isa205-altivec64l.c,
+ features/rs6000/powerpc-isa205-vsx32l.c,
+ features/rs6000/powerpc-isa205-vsx64l.c,
+ features/rs6000/powerpc-vsx32.c,
+ features/rs6000/powerpc-vsx32l.c,
+ features/rs6000/powerpc-vsx64.c,
+ features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c,
+ features/s390-tevx-linux64.c, features/s390-vx-linux64.c,
+ features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c,
+ features/s390x-vx-linux64.c: Re-generate.
+
+2017-12-20 Uros Bizjak <ubizjak@gmail.com>
+
+ * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
+ write-only assignment to "insn" variable.
+
+2017-12-20 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
+ to 64 bits.
+ (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported.
+
+2017-12-18 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with
+ a more detailed exception message when getting an exception
+ while trying to read the value of an XVZ variable.
+ * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR
+ exceptions. Print an error message when an exception is caught.
+
+2017-12-18 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF
+ layer from lhs' type.
+ (assign_aggregate): Likewise.
+
+2017-12-18 Xavier Roirand <roirand@adacore.com>
+
+ * ada-lang.c (ada_convert_actual): Change the way actual value
+ are passed to the inferior when the inferior expects a pointer type.
+
+2017-12-17 Stafford Horne <shorne@gmail.com>
+
+ * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
+ (or1k_analyse_inst): Likewise.
+ (or1k_single_step_through_delay): Likewise.
+ (or1k_frame_cache): Fix parameter alignment and use paddress()
+ instead of %x.
+
+2017-12-17 Stafford Horne <shorne@gmail.com>
+
+ * NEWS (Changes since GDB 8.0): Mention new or1k target and new
+ commands to set/show or1k debug.
+
+2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
+ condition.
+
+2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
+ Pedro Alves <palves@redhat.com>
+
+ PR cli/16224
+ * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
+ * c-typeprint.c (OFFSET_SPC_LEN): New define.
+ (c_type_print_varspec_prefix): New argument 'struct
+ print_offset_data *'.
+ (c_type_print_base_1): New function and prototype.
+ (c_print_type_1): New function, with code from 'c_print_type'.
+ (c_print_type): Use 'c_print_type_1'.
+ (c_type_print_varspec_prefix): New argument 'struct
+ print_offset_data *'. Use it. Call 'c_type_print_base_1'
+ instead of 'c_print_type_base'.
+ (print_spaces_filtered_with_print_options): New function.
+ (output_access_specifier): Take new argument FLAGS. Modify
+ function to call 'print_spaces_filtered_with_print_options'.
+ (c_print_type_vtable_offset_marker): New function.
+ (c_print_type_union_field_offset): New function.
+ (c_print_type_struct_field_offset): New function.
+ (c_print_type_no_offsets): New function.
+ (c_type_print_base_struct_union): New argument 'struct
+ print_offset_data *'. Print offsets and sizes for
+ struct/union/class fields.
+ * typeprint.c (const struct type_print_options
+ type_print_raw_options): Initialize 'print_offsets'.
+ (static struct type_print_options default_ptype_flags):
+ Likewise.
+ (struct print_offset_data print_offset_default_data): New
+ variable.
+ (whatis_exp): Handle '/o' option.
+ (_initialize_typeprint): Add '/o' flag to ptype's help.
+ * typeprint.h (struct print_offset_data): New struct.
+ (struct type_print_options) <print_offsets>: New field.
+
+2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * c-typeprint.c (need_access_label_p): New function.
+ (c_type_print_base_struct_union): New function.
+ (c_type_print_base): Move code to handle
+ TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
+
+2017-12-15 Richard Henderson <rth@redhat.com>
+ Uros Bizjak <ubizjak@gmail.com>
+
+ PR gdb/19061
+ * alpha-tdep.c (alpha_software_single_step): Call
+ alpha_deal_with_atomic_sequence here.
+ (set_gdbarch_software_single_step): Set to
+ alpha_software_single_step.
+ * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
+ and GDB_ARCH_IS_TRAP_HWBKPT.
+
+2017-12-15 Yao Qi <yao.qi@linaro.org>
+
+ * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
+
+2017-12-15 Xavier Roirand <roirand@adacore.com>
+
+ * ada-lang.c (ada_value_primitive_field): Handle field search
+ in case of homonyms.
+ (find_struct_field): Ditto.
+ (ada_search_struct_field): Ditto.
+ (ada_value_struct_elt): Ditto.
+ (ada_lookup_struct_elt_type): Ditto.
+
+2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
+
+ * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
+ for "qualified" and use PyObject_IsTrue.
+
+2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (dw2_debug_names_iterator::next): Support
+ DW_IDX_type_unit.
+ (debug_names::dwarf5_offset_size, unit_kind): New.
+ (debug_names::insert): Add parameter kind.
+ (debug_names::build): Support DW_IDX_type_unit.
+ (debug_names::recursively_write_psymbols): Update
+ (debug_names::write_psymbols caller.
+ (debug_names::write_one_signatured_type_data)
+ (debug_names::write_one_signatured_type): New.
+ (debug_names::index_key, debug_names::symbol_value)
+ (debug_names::write_psymbols): Add kind.
+ (debug_names::write_one_signatured_type): New.
+ (write_debug_names): Move dwarf5_offset_size to debug_names.
+ Use debug_names::write_one_signatured_type for type units.
+
+2017-12-14 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_value_equal): Add handling of typedef types
+ when comparing array objects.
+
+2017-12-14 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-tasks.c (read_atcb): Properly set task_info->ptid
+ when !target_has_execution as well.
+ (task_command): Remove error when !target_has_execution.
+
+2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
+
+ * location.h (string_to_event_location): Add match_type
+ parameter.
+ * location.c (string_to_event_location): Likewise.
+ * python/py-breakpoint.c (bppy_init): Handle qualified
+ parameter.
+
+2017-12-13 Pedro Alves <palves@redhat.com>
+
+ * completer.c (completion_tracker::maybe_add_completion): New
+ 'text' and 'word' parameters. Use make_completion_match_str.
+ (completion_tracker::add_completion): New 'text' and 'word'
+ parameters. Pass down.
+ (completion_tracker::recompute_lowest_common_denominator): Change
+ parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
+ * completer.h (completion_tracker::add_completion): New 'text' and
+ 'word' parameters.
+ (completion_tracker::recompute_lowest_common_denominator): Change
+ parameter type to gdb::unique_xmalloc_ptr rval ref.
+ (completion_tracker::recompute_lowest_common_denominator): Change
+ parameter type to gdb::unique_xmalloc_ptr rval ref.
+ * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
+ as well.
+
+2017-12-13 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
+ make_completion_match_str.
+ * completer.c: Use gdb::unique_xmalloc_ptr and
+ make_completion_match_str.
+ (make_completion_match_str_1): New.
+ (make_completion_match_str(const char *, const char *,
+ const char *)): New.
+ (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
+ const char *, const char *)): New.
+ * completer.h (make_completion_match_str(const char *,
+ const char *, const char *)): New.
+ (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
+ const char *, const char *)): New.
+ * interps.c (interpreter_completer): Use make_completion_match_str.
+ * symtab.c (completion_list_add_name, add_filename_to_list): Use
+ make_completion_match_str.
+
+2017-12-13 Stafford Horne <shorne@gmail.com>
+
+ * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
+ strings.
+ (or1k_unwind_pc): Use paddress() instead of %p.
+ (or1k_unwind_sp): Likewise.
+ (or1k_frame_cache): Use host_address_to_string()/paddress()
+ instead of %p and use _() wrapper for message strings.
+
+2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
+
+ * contrib/ari/gdb_ari.sh: Fix typo in help.
+
+2017-12-13 Joel Brobecker <brobecker@adacore.com>
+
+ * event-top.c (handle_line_of_input): Set server_command.
+
+2017-12-12 Stafford Horne <shorne@gmail.com>
+ Stefan Wallentowitz <stefan@wallentowitz.de>
+ Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
+ Franck Jullien <franck.jullien@gmail.com>
+ Jeremy Bennett <jeremy.bennett@embecosm.com>
+
+ * configure.tgt: Add targets for or1k and or1knd.
+ * or1k-tdep.c: New file.
+ * or1k-tdep.h: New file.
+ * features/Makefile: Add or1k.xml to build.
+ * features/or1k.xml: New file.
+ * features/or1k-core.xml: New file.
+ * features/or1k.c: Generated.
+
+2017-12-12 Alan Modra <amodra@gmail.com>
+
+ PR tdep/22576
+ * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
+ PLT offset, and retrieve r2 from stack when executing in reverse.
+ (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
+ rather than PLT address.
+ (ppc64_standard_linkage2_target): Likewise.
+ (ppc64_standard_linkage3_target): Likewise.
+ (ppc64_standard_linkage4_target): Likewise.
+ (ppc64_skip_trampoline_code_1): Adjust to suit.
+
+2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/22556
+ * remote.c (remote_thread_name): Return NULL if name is empty.
+ (remote_threads_extra_info): Return NULL if extra info is empty.
+
+2017-12-11 Pedro Alves <palves@redhat.com>
+
+ * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
+ (elf_sym_fns_debug_names): Move to elfread.c.
+ * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
+ instead of a sym_fns and add 'index_kind' output parameter. Fill
+ the latter in with the index variant kind if using an index.
+ (enum dw_index_kind): Moved to symfile.h.
+ * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
+ (elf_sym_fns_lazy_psyms): Move from defs.h.
+ (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
+ interface.
+ * symfile.h (enum class dw_index_kind): New, moved from
+ dwarf2read.c.
+ (dwarf2_initialize_objfile): Change prototype.
+
+2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
+ instead of mpfr_set_si to convert mantissa bits.
+
+2017-12-11 Xavier Roirand <roirand@adacore.com>
+ Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_tag_value_at_base_address): Change the way
+ tagged type base address is computed.
+ (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
+ New enumerate.
+ (ada_language_arch_info): Set the ada_primitive_type_storage_offset
+ element of lai->primitive_type_vector.
+
+2017-12-08 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
+ mapped_index_base.
+ (check_match): Adjust to use mock_index directly.
+ (check_find_bounds_finds)
+ (test_mapped_index_find_name_component_bounds): Adjust to work
+ with a mapped_index_base.
+
+2017-12-08 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (struct mapped_index_base): New, partially factored
+ out from ...
+ (struct mapped_index): ... this. Inherit mapped_index_base.
+ (mapped_index::symbol_name_slot_invalid):
+ (mapped_index::symbol_name_at): Add override marker.
+ (mapped_index::symbol_name_count): New.
+ (struct mapped_debug_names): Inherit mapped_index_base.
+ (mapped_debug_names::symbol_name_at): New.
+ (mapped_debug_names::symbol_name_count): New.
+ (mapped_index::find_name_components_bounds): Rename to ...
+ (mapped_index_base::find_name_components_bounds): ... this.
+ (mapped_index::build_name_components): Rename to ...
+ (mapped_index_base::build_name_components): ... this. Adjust to
+ use mapped_index_base::symbol_name_count and
+ mapped_index_base::symbol_name_slot_invalid.
+ (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
+ instead of a mapped_index. Use
+ dw2_expand_symtabs_matching_symbol.
+
+2017-12-08 Pedro Alves <palves@redhat.com>
+
+ * dwarf2read.c (mapped_index::symbol_table_slot): New.
+ (mapped_index::address_table): Now a gdb::array_view of const
+ gdb_byte.
+ (mapped_index::symbol_table): Now a gdb::array_view of
+ symbol_table_slot.
+ (mapped_index::address_table_size)
+ (mapped_index::symbol_table_slots): Delete.
+ (create_addrmap_from_index): Adjust.
+ (find_slot_in_mapped_hash): Adjust.
+ (read_index_from_section): Adjust.
+ (dwarf2_read_index): Adjust.
+
+2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <palves@redhat.com>
+
+ * defs.h (elf_sym_fns_debug_names): New declaration.
+ * dwarf2read.c: Include "hash_enum.h".
+ (mapped_debug_names): New.
+ (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
+ debug_names_table.
+ (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
+ (struct dwz_file): Add debug_names.
+ (dwarf2_per_objfile::locate_sections): Handle debug_names and
+ debug_aranges.
+ (locate_dwz_sections): Handle debug_names.
+ (create_signatured_type_table_from_debug_names)
+ (create_addrmap_from_aranges): New.
+ (dwarf2_read_index): Update function comment.
+ (dwarf5_augmentation): Moved up.
+ (read_debug_names_from_section, create_cus_from_debug_names_list)
+ (create_cus_from_debug_names, dwarf2_read_debug_names): New.
+ (dwarf5_djb_hash): Moved up.
+ (dw2_debug_names_iterator): New.
+ (read_indirect_string_at_offset): New declaration.
+ (mapped_debug_names::namei_to_name)
+ (dw2_debug_names_iterator::find_vec_in_debug_names)
+ (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
+ (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
+ (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
+ New.
+ (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
+ (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
+ (debug_names::build): Update djb_hash caller.
+ (write_debug_names): Move out and rename augmentation to
+ dwarf5_augmentation.
+ * elfread.c (elf_sym_fns_debug_names): New.
+ * psymtab.h (dwarf2_debug_names_functions): New declaration.
+ * symfile.h (struct dwarf2_debug_sections): Add debug_names and
+ debug_aranges.
+ * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
+
+2017-12-08 Pedro Alves <palves@redhat.com>
+
+ * common/hash_enum.h: New file.
+
+2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (create_cu_from_index_list): New from ...
+ (create_cus_from_index_list): ... this function, use it.
+ (dw_expand_symtabs_matching_file_matcher)
+ (dw2_expand_symtabs_matching_one): New from ...
+ (dw2_expand_symtabs_matching): ... this function, use them.
+
+2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
+ declarations from elfread.c.
+ (dwarf2_initialize_objfile): Change return value.
+ * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
+ declarations to defs.h.
+ (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
+ * symfile.h (dwarf2_initialize_objfile): Change return type.
+
+2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <palves@redhat.com>
+
+ * contrib/gdb-add-index.sh (index): Rename to ...
+ (index4): ... here.
+ (index5, debugstr, debugstrmerge, debugstrerr): New variables.
+ Support also .debug_names and .debug_str.
+ * dwarf2read.c: Include cmath, set, list.
+ (INDEX_SUFFIX): Rename to ...
+ (INDEX4_SUFFIX): ... here.
+ (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
+ (file_write(FILE *, const void *, size_t)): New.
+ (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
+ (data_buf::append_unsigned_leb128, data_buf::empty): New.
+ (data_buf::file_write): Use ::file_write.
+ (data_buf::c_str, dwarf5_djb_hash, debug_names)
+ (check_dwarf64_offsets): New.
+ (psyms_seen_size, write_gdbindex): New from
+ write_psymtabs_to_index code.
+ (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
+ (enum dw_index_kind): New.
+ (write_psymtabs_to_index): New parameter index_kind. Support
+ filename_str and out_file_str. Move code to write_gdbindex,
+ possibly call write_debug_names.
+ (save_gdb_index_command): New parameter -dwarf-5.
+ (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
+
2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <palves@redhat.com>
in_inclusive_range.
2017-10-30 Pedro Alves <palves@redhat.com>
- Simon Marchi <simon.marchi@ericsson.com>
+ Simon Marchi <simon.marchi@ericsson.com>
* remote.c (remote_set_syscall_catchpoint): Build a std::string
instead of a gdb::unique_xmalloc_ptr, using string_appendf.