GDB (xrefs)
|
Classes | |
struct | deferred_entry |
Public Member Functions | |
cooked_indexer (cooked_index_storage *storage, dwarf2_per_cu_data *per_cu, enum language language) | |
DISABLE_COPY_AND_ASSIGN (cooked_indexer) | |
void | make_index (cutu_reader *reader) |
Private Member Functions | |
CORE_ADDR | form_addr (sect_offset offset, bool is_dwz) |
void | check_bounds (cutu_reader *reader) |
cutu_reader * | ensure_cu_exists (cutu_reader *reader, dwarf2_per_objfile *per_objfile, sect_offset sect_off, bool is_dwz, bool for_scanning) |
const gdb_byte * | index_dies (cutu_reader *reader, const gdb_byte *info_ptr, const cooked_index_entry *parent_entry, bool fully) |
const gdb_byte * | scan_attributes (dwarf2_per_cu_data *scanning_per_cu, cutu_reader *reader, const gdb_byte *watermark_ptr, const gdb_byte *info_ptr, const abbrev_info *abbrev, const char **name, const char **linkage_name, cooked_index_flag *flags, sect_offset *sibling_offset, const cooked_index_entry **parent_entry, CORE_ADDR *maybe_defer, bool for_specification) |
const gdb_byte * | index_imported_unit (cutu_reader *reader, const gdb_byte *info_ptr, const abbrev_info *abbrev) |
const gdb_byte * | recurse (cutu_reader *reader, const gdb_byte *info_ptr, const cooked_index_entry *parent_entry, bool fully) |
Private Attributes | |
cooked_index_storage * | m_index_storage |
dwarf2_per_cu_data * | m_per_cu |
enum language | m_language |
addrmap_mutable | m_die_range_map |
std::vector< deferred_entry > | m_deferred_entries |
|
inline |
|
private |
Definition at line 17984 of file read.c.
References dwarf2_per_cu_data::addresses_seen, objfile::arch(), cutu_reader::comp_unit_die, die_reader_specs::cu, dwarf2_find_base_address(), dwarf2_get_pc_bounds(), gdbarch_adjust_dwarf2_addr(), cooked_index_storage::get_addrmap(), m_index_storage, dwarf2_per_objfile::objfile, PC_BOUNDS_HIGH_LOW, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, addrmap_mutable::set_empty(), and objfile::text_section_offset().
Referenced by ensure_cu_exists(), and make_index().
cooked_indexer::DISABLE_COPY_AND_ASSIGN | ( | cooked_indexer | ) |
|
private |
Definition at line 18035 of file read.c.
References check_bounds(), cutu_reader::comp_unit_die, die_reader_specs::cu, cutu_reader::dummy_p, dwarf2_find_containing_comp_unit(), cooked_index_storage::get_abbrev_cache(), cooked_index_storage::get_reader(), die_info::has_children, dwarf2_per_cu_data::is_dwz, language_minimal, m_index_storage, m_per_cu, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, prepare_one_comp_unit(), cooked_index_storage::preserve(), and dwarf2_per_cu_data::scanned.
Referenced by index_imported_unit(), and scan_attributes().
|
inlineprivate |
Definition at line 6725 of file read.c.
Referenced by make_index(), recurse(), and scan_attributes().
|
private |
Definition at line 18387 of file read.c.
References cooked_index_storage::add(), die_reader_specs::buffer, die_reader_specs::buffer_end, complaint, die_reader_specs::cu, die_reader_specs::die_section, flags, abbrev_info::has_children, index_dies(), index_imported_unit(), abbrev_info::interesting, IS_ENUM_CLASS, IS_LINKAGE, IS_STATIC, language_ada, language_c, language_cplus, language_fortran, m_deferred_entries, m_index_storage, m_language, m_per_cu, name, dwarf2_section_info::overflow_complaint(), peek_die_abbrev(), dwarf2_cu::per_cu, recurse(), scan_attributes(), skip_children(), skip_one_die(), and abbrev_info::tag.
Referenced by index_dies(), index_imported_unit(), make_index(), and recurse().
|
private |
Definition at line 18328 of file read.c.
References dwarf2_cu::add_dependence(), abbrev_info::attrs, die_reader_specs::cu, ensure_cu_exists(), attribute::form, attribute::get_ref_die_offset(), index_dies(), cutu_reader::info_ptr, dwarf2_per_cu_data::is_dwz, attribute::name, abbrev_info::num_attrs, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and read_attribute().
Referenced by index_dies().
void cooked_indexer::make_index | ( | cutu_reader * | reader | ) |
Definition at line 18543 of file read.c.
References cooked_index_storage::add(), check_bounds(), cutu_reader::comp_unit_die, die_reader_specs::cu, addrmap_mutable::find(), find_file_and_directory(), form_addr(), die_info::has_children, index_dies(), cutu_reader::info_ptr, dwarf2_per_cu_data::is_dwz, m_deferred_entries, m_die_range_map, m_index_storage, and m_per_cu.
Referenced by build_type_psymtabs_reader(), and process_psymtab_comp_unit().
|
private |
Definition at line 18367 of file read.c.
References die_reader_specs::buffer, die_reader_specs::cu, cooked_index_entry::die_offset, form_addr(), index_dies(), dwarf2_per_cu_data::is_dwz, m_die_range_map, dwarf2_cu::per_cu, and addrmap_mutable::set_empty().
Referenced by index_dies().
|
private |
Definition at line 18084 of file read.c.
References dwarf2_per_cu_data::addresses_seen, objfile::arch(), attribute::as_address(), attribute::as_block(), attribute::as_boolean(), attribute::as_string(), attribute::as_unsigned(), abbrev_info::attrs, die_reader_specs::buffer, die_reader_specs::cu, decode_locdesc(), dwarf2_ranges_read(), ensure_cu_exists(), addrmap_mutable::find(), flags, attribute::form, form_addr(), attribute::form_is_block(), attribute::form_is_constant(), gdbarch_adjust_dwarf2_addr(), cooked_index_storage::get_addrmap(), attribute::get_ref_die_offset(), dwarf2_cu::gnu_ranges_base, abbrev_info::has_children, dwarf2_per_bfd::has_section_at_zero, IS_ENUM_CLASS, IS_MAIN, IS_STATIC, IS_TYPE_DECLARATION, language_ada, language_c, language_cplus, m_die_range_map, m_index_storage, m_language, name, attribute::name, abbrev_info::num_attrs, dwarf2_per_objfile::objfile, peek_die_abbrev(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, read_attribute(), read_attribute_reprocess(), attribute::requires_reprocessing_p(), scan_attributes(), addrmap_mutable::set_empty(), abbrev_info::tag, tag_can_have_linkage_name(), and objfile::text_section_offset().
Referenced by index_dies(), and scan_attributes().
|
private |
Definition at line 6819 of file read.c.
Referenced by index_dies(), and make_index().
|
private |
Definition at line 6800 of file read.c.
Referenced by make_index(), recurse(), and scan_attributes().
|
private |
Definition at line 6788 of file read.c.
Referenced by check_bounds(), ensure_cu_exists(), index_dies(), make_index(), and scan_attributes().
|
private |
Definition at line 6795 of file read.c.
Referenced by index_dies(), and scan_attributes().
|
private |
Definition at line 6793 of file read.c.
Referenced by ensure_cu_exists(), index_dies(), and make_index().