Change file_full_name and file_file_name methods
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index d0c5d4a0fdefafc6fdd7ae801f0f8bb4920bd580..a25a6719dffaaf88dc29b9dca3c3a98bbbfa28ec 100644 (file)
@@ -1,3 +1,310 @@
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (struct line_header) <file_full_name,
+       file_file_name>: Declare methods.
+       (dw2_get_file_names_reader): Update.
+       (file_file_name): Now a method.
+       (file_full_name): Likewise.
+       (macro_start_file): Update.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (dwarf_always_disassemble)
+       (show_dwarf_always_disassemble): Move to loc.c.
+       (_initialize_dwarf2_read): Move "always-disassemble" registration
+       to loc.c.
+       * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
+       * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c.  Now
+       static.
+       (show_dwarf_always_disassemble): Move from read.c.
+       (_initialize_dwarf2loc): Move always-disassemble from read.c.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (~dwarf2_per_objfile): Update.
+       (create_quick_file_names_table): Return htab_up.
+       (dw2_get_file_names_reader, dw2_forget_cached_source_info):
+       Update.
+       * dwarf2/read.h (struct dwarf2_per_objfile)
+       <quick_file_names_table>: Now htab_up.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/abbrev.c (abbrev_table::read): Simplify.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
+       Rewrite.
+       (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
+       * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
+       (abbrev_table::abbrev_table): No longer inline.
+       (ABBREV_HASH_SIZE): Remove.
+       (abbrev_table::m_abbrevs): Now an htab_up.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_cutu_die_from_dwo): Update.
+       (cutu_reader): Update.
+       (build_type_psymtabs_1): Update.
+       * dwarf2/abbrev.c (abbrev_table::read): Rename.
+       (abbrev_table::alloc_abbrev): Update.
+       * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
+       (abbrev_table::read): New static method, renamed from
+       abbrev_table_read_table.
+       (abbrev_table::alloc_abbrev)
+       (abbrev_table::add_abbrev): Now private.
+       (abbrev_table::abbrev_table): Now private.
+       (abbrev_table::m_abbrev_obstack): Now private.  Rename.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
+       * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
+       htab_up.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
+       htab_up.
+       (lookup_dwo_unit_in_dwp): Update.
+       (allocate_dwp_loaded_cutus_table): Return htab_up.  Don't allocate
+       on obstack.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
+       obstack.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
+       line_header_hash.
+       (handle_DW_AT_stmt_list): Update.  Don't allocate on obstack.
+       * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
+       Change type to htab_up.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (allocate_type_unit_groups_table): Return
+       htab_up.  Don't allocate on obstack.
+       (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
+       * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
+       Change type to htab_up.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
+       Change type to htab_up.
+       * dwarf2/read.c (create_signatured_type_table_from_index)
+       (create_signatured_type_table_from_debug_names)
+       (create_all_type_units, add_type_unit)
+       (lookup_dwo_signatured_type, lookup_signatured_type)
+       (process_skeletonless_type_unit): Update.
+       (create_debug_type_hash_table, create_debug_types_hash_table):
+       Change type of types_htab.
+       (allocate_signatured_type_table, allocate_dwo_unit_table): Return
+       htab_up.  Don't allocate on obstack.
+       (create_cus_hash_table): Change type of cus_htab parameter.
+       (struct dwo_file) <cus, tus>: Now htab_up.
+       (lookup_dwo_signatured_type, lookup_dwo_cutu)
+       (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
+       (queue_and_load_all_dwo_tus): Update.
+       * dwarf2/index-write.c (write_gdbindex): Update.
+       (write_debug_names): Update.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.h (struct dwarf2_queue_item): Move from
+       dwarf2/read.c.  Remove "next" member.  Add constructor ntad
+       destructor.
+       (struct dwarf2_per_objfile) <queue>: New member.
+       * dwarf2/read.c (struct dwarf2_queue_item): Move to
+       dwarf2/read.h.
+       (dwarf2_queue, dwarf2_queue_tail): Remove.
+       (class dwarf2_queue_guard): Add parameter to constructor.  Use
+       DISABLE_COPY_AND_ASSIGN.
+       <m_per_objfile>: New member.
+       <~dwarf2_queue_guard>: Rewrite.
+       (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
+       Update.
+       (~dwarf2_queue_item): New.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (struct die_info) <has_children>: New member.
+       (dw2_get_file_names_reader): Remove has_children.
+       (dw2_get_file_names): Update.
+       (read_cutu_die_from_dwo): Remove has_children.
+       (cutu_reader::init_tu_and_read_dwo_dies)
+       (cutu_reader::cutu_reader): Update.
+       (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
+       Remove has_children.
+       (build_type_psymtabs_1, process_skeletonless_type_unit)
+       (load_partial_comp_unit, load_full_comp_unit): Update.
+       (create_dwo_cu_reader): Remove has_children.
+       (create_cus_hash_table, read_die_and_children): Update.
+       (read_full_die_1,read_full_die): Remove has_children.
+       (read_signatured_type): Update.
+       (class cutu_reader) <has_children>: Remove.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/expr.c: Rename from dwarf2expr.c.
+       * dwarf2/expr.h: Rename from dwarf2expr.h.
+       * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
+       * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
+       * dwarf2/frame.c: Rename from dwarf2-frame.c.
+       * dwarf2/frame.h: Rename from dwarf2-frame.h.
+       * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
+       * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
+       * dwarf2/index-common.c: Rename from dwarf-index-common.c.
+       * dwarf2/index-common.h: Rename from dwarf-index-common.h.
+       * dwarf2/index-write.c: Rename from dwarf-index-write.c.
+       * dwarf2/index-write.h: Rename from dwarf-index-write.h.
+       * dwarf2/loc.c: Rename from dwarf2loc.c.
+       * dwarf2/loc.h: Rename from dwarf2loc.h.
+       * dwarf2/read.c: Rename from dwarf2read.c.
+       * dwarf2/read.h: Rename from dwarf2read.h.
+       * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
+       amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
+       compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
+       compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
+       gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
+       hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
+       i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
+       m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
+       msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
+       riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
+       s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
+       sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
+       tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
+       Update.
+       * Makefile.in (COMMON_SFILES): Update.
+       (HFILES_NO_SRCDIR): Update.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
+       (init_cu_die_reader, read_cutu_die_from_dwo): Update.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.h (struct die_info): Don't declare.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.h (die_info_ptr): Remove typedef.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (read_call_site_scope)
+       (handle_data_member_location, dwarf2_add_member_fn)
+       (mark_common_block_symbol_computed, read_common_block)
+       (attr_to_dynamic_prop, partial_die_info::read)
+       (var_decode_location, dwarf2_fetch_die_loc_sect_off)
+       (dwarf2_symbol_mark_computed, set_die_type): Update.
+       * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
+       method.
+       (attr_form_is_block): Don't declare.
+       * dwarf2/attribute.c (attribute::form_is_block): Now a method.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_find_base_address, )
+       (read_call_site_scope, rust_containing_type)
+       (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
+       (handle_data_member_location, dwarf2_add_member_fn)
+       (get_alignment, read_structure_type, process_structure_scope)
+       (mark_common_block_symbol_computed, read_common_block)
+       (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
+       (partial_die_info::read, read_attribute_value, new_symbol)
+       (lookup_die_type, dwarf2_get_ref_die_offset)
+       (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
+       (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
+       (dwarf2_symbol_mark_computed): Update.
+       * dwarf2/attribute.h (struct attribute) <value_as_address,
+       form_is_section_offset, form_is_constant, form_is_ref>: Declare
+       methods.
+       (value_as_address, attr_form_is_section_offset)
+       (attr_form_is_constant, attr_form_is_ref): Don't declare.
+       * dwarf2/attribute.c (attribute::value_as_address)
+       (attribute::form_is_section_offset, attribute::form_is_constant)
+       (attribute::form_is_ref): Now methods.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (struct attribute, DW_STRING)
+       (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
+       (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
+       (attr_form_is_block, attr_form_is_section_offset)
+       (attr_form_is_constant, attr_form_is_ref): Move.
+       * dwarf2/attribute.h: New file.
+       * dwarf2/attribute.c: New file, from dwarf2read.c.
+       * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (abbrev_table_up, struct abbrev_info)
+       (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
+       Move.
+       (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
+       (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
+       (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
+       abbrev.c.
+       * dwarf2/abbrev.h: New file.
+       * dwarf2/abbrev.c: New file, from dwarf2read.c.
+       * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
+       (dwarf2_section_size, dwarf2_get_section_info)
+       (create_signatured_type_table_from_debug_names)
+       (create_addrmap_from_aranges, read_debug_names_from_section)
+       (get_gdb_index_contents_from_section, read_comp_unit_head)
+       (error_check_comp_unit_head, read_abbrev_offset)
+       (create_debug_type_hash_table, init_cu_die_reader)
+       (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
+       (read_comp_units_from_section, create_cus_hash_table)
+       (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
+       (create_dwp_v2_section, dwarf2_rnglists_process)
+       (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
+       (abbrev_table_read_table, read_indirect_string_at_offset_from)
+       (read_indirect_string_from_dwz, read_addr_index_1)
+       (read_str_index, dwarf_decode_line_header, skip_form_bytes)
+       (dwarf_decode_macro_bytes, dwarf_decode_macros)
+       (fill_in_loclist_baton): Update.
+       * dwarf2/section.h (struct dwarf2_section_info) <get_name,
+       get_containing_section, get_bfd_owner, get_bfd_section,
+       get_file_name, get_id, get_flags, empty, read>: Declare methods.
+       (dwarf2_read_section, get_section_name, get_section_file_name)
+       (get_containing_section, get_section_bfd_owner)
+       (get_section_bfd_section, get_section_name, get_section_file_name)
+       (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
+       declare.
+       * dwarf2/section.c (dwarf2_section_info::get_containing_section)
+       (dwarf2_section_info::get_bfd_owner)
+       (dwarf2_section_info::get_bfd_section)
+       (dwarf2_section_info::get_name)
+       (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
+       (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
+       (dwarf2_section_info::read): Now methods.
+       * dwarf-index-write.c (class debug_names): Update.
+
+2020-02-08  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
+       Move to dwarf2/section.h.
+       * dwarf2read.c (get_containing_section, get_section_bfd_owner)
+       (get_section_bfd_section, get_section_name)
+       (get_section_file_name, get_section_id, get_section_flags)
+       (dwarf2_section_empty_p, dwarf2_read_section): Moe to
+       dwarf2/section.c.
+       * dwarf2/section.h: New file.
+       * dwarf2/section.c: New file, from dwarf2read.c.
+       * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
+
 2020-02-08  Tom Tromey  <tom@tromey.com>
 
        * dwarf2read.h (read_unsigned_leb128): Don't declare.
This page took 0.03734 seconds and 4 git commands to generate.