]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Factor out final completion match string building
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index b6f37145abe400d11c5067ff0ab711d4f4834f77..25ef530a1012f9a04b9b7b48e5018aae6243e04b 100644 (file)
@@ -1,3 +1,197 @@
+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