GDB (xrefs)
|
#include "read.h"
Public Member Functions | |
dwarf2_per_cu_data () | |
bool | imported_symtabs_empty () const |
void | imported_symtabs_push (dwarf2_per_cu_data *p) |
size_t | imported_symtabs_size () const |
void | imported_symtabs_free () |
const comp_unit_head * | get_header () const |
int | addr_size () const |
int | offset_size () const |
int | ref_addr_size () const |
unsigned int | length () const |
void | set_length (unsigned int length, bool strict_p=true) |
short | version () const |
void | set_version (short version) |
dwarf_unit_type | unit_type (bool strict_p=true) const |
void | set_unit_type (dwarf_unit_type unit_type) |
enum language | lang (bool strict_p=true) const |
void | set_lang (enum language lang) |
void | free_cached_file_names () |
Public Attributes | |
sect_offset | sect_off {} |
unsigned int | is_debug_types: 1 |
unsigned int | is_dwz: 1 |
unsigned int | reading_dwo_directly: 1 |
unsigned int | tu_read: 1 |
packed< bool, 1 > | addresses_seen = false |
packed< bool, 1 > | queued |
packed< bool, 1 > | m_header_read_in |
packed< unsigned int, 1 > | mark |
packed< bool, 1 > | files_read |
std::atomic< bool > | scanned |
unsigned | index = 0 |
struct dwarf2_section_info * | section = nullptr |
dwarf2_per_bfd * | per_bfd = nullptr |
comp_unit_head | m_header |
std::unique_ptr< file_and_directory > | fnd |
struct quick_file_names * | file_names = nullptr |
std::vector< dwarf2_per_cu_data * > * | imported_symtabs = nullptr |
Private Attributes | |
unsigned int | m_length = 0 |
unsigned char | m_dwarf_version = 0 |
std::atomic< packed< dwarf_unit_type, 1 > > | m_unit_type {(dwarf_unit_type)0} |
std::atomic< packed< language, LANGUAGE_BYTES > > | m_lang {language_unknown} |
int dwarf2_per_cu_data::addr_size | ( | ) | const |
Definition at line 21567 of file read.c.
References comp_unit_head::addr_size, and get_header().
Referenced by dwarf2_cu::addr_sized_int_type(), dwarf2_cu::addr_type(), dwarf2_compile_property_to_c(), dwarf2_evaluate_loc_desc_full(), dwarf2_evaluate_property(), dwarf2_find_location_expression(), dwarf2_get_symbol_read_needs(), dwarf2_locexpr_baton_eval(), locexpr_describe_location(), locexpr_generate_c_location(), locexpr_get_symbol_read_needs(), locexpr_tracepoint_var_ref(), loclist_describe_location(), loclist_generate_c_location(), loclist_tracepoint_var_ref(), and dwarf_expr_context::push_dwarf_reg_entry_value().
void dwarf2_per_cu_data::free_cached_file_names | ( | ) |
Definition at line 2179 of file read.c.
References file_names, fnd, quick_file_names::num_file_names, per_bfd, quick_file_names::real_names, and xfree().
const comp_unit_head * dwarf2_per_cu_data::get_header | ( | ) | const |
Definition at line 21548 of file read.c.
References dwarf2_section_info::buffer, COMPILE, m_header, m_header_read_in, read_comp_unit_head(), and sect_off.
Referenced by addr_size(), offset_size(), and ref_addr_size().
|
inline |
Definition at line 249 of file read.h.
References imported_symtabs.
Referenced by compute_compunit_symtab_includes(), and recursively_compute_inclusions().
|
inline |
Definition at line 273 of file read.h.
References imported_symtabs.
|
inline |
Definition at line 256 of file read.h.
References imported_symtabs.
Referenced by process_imported_unit_die(), and queue_and_load_dwo_tu().
|
inline |
Definition at line 265 of file read.h.
References imported_symtabs.
|
inline |
Definition at line 352 of file read.h.
References language_unknown, and m_lang.
Referenced by cooked_index_entry::full_name(), process_imported_unit_die(), and set_lang().
|
inline |
Definition at line 295 of file read.h.
References m_length.
Referenced by create_cus_from_gdb_index_list(), create_cus_hash_table(), create_dwo_cu_reader(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), dwarf2_build_psymtabs_hard(), dwarf2_find_containing_comp_unit(), dwarf2_find_containing_comp_unit(), set_length(), and write_gdbindex().
int dwarf2_per_cu_data::offset_size | ( | ) | const |
Definition at line 21575 of file read.c.
References get_header(), and comp_unit_head::offset_size.
Referenced by locexpr_describe_location(), and loclist_describe_location().
int dwarf2_per_cu_data::ref_addr_size | ( | ) | const |
Definition at line 21583 of file read.c.
References comp_unit_head::addr_size, get_header(), comp_unit_head::offset_size, and comp_unit_head::version.
Referenced by dwarf2_get_symbol_read_needs(), dwarf_expr_context::execute_stack_op(), and locexpr_get_symbol_read_needs().
|
inline |
Definition at line 360 of file read.h.
References lang(), language_unknown, m_lang, and unit_type().
Referenced by prepare_one_comp_unit().
|
inline |
Definition at line 302 of file read.h.
References length(), and m_length.
Referenced by cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), and fill_in_sig_entry_from_dwo_entry().
|
inline |
Definition at line 338 of file read.h.
References m_unit_type, and unit_type().
Referenced by prepare_one_comp_unit().
|
inline |
Definition at line 320 of file read.h.
References m_dwarf_version, and version().
Referenced by cutu_reader::cutu_reader().
|
inline |
Definition at line 330 of file read.h.
References m_unit_type.
Referenced by process_imported_unit_die(), set_lang(), and set_unit_type().
|
inline |
Definition at line 313 of file read.h.
References m_dwarf_version.
Referenced by dwarf2_find_location_expression(), loclist_describe_location(), open_and_init_dwo_file(), and set_version().
packed<bool, 1> dwarf2_per_cu_data::addresses_seen = false |
Definition at line 159 of file read.h.
Referenced by cooked_indexer::check_bounds(), read_addrmap_from_aranges(), and cooked_indexer::scan_attributes().
struct quick_file_names* dwarf2_per_cu_data::file_names = nullptr |
Definition at line 220 of file read.h.
Referenced by dw2_get_file_names(), dw2_get_file_names_reader(), and free_cached_file_names().
packed<bool, 1> dwarf2_per_cu_data::files_read |
Definition at line 177 of file read.h.
Referenced by dw2_get_file_names(), and dw2_get_file_names_reader().
std::unique_ptr<file_and_directory> dwarf2_per_cu_data::fnd |
Definition at line 215 of file read.h.
Referenced by find_file_and_directory(), and free_cached_file_names().
std::vector<dwarf2_per_cu_data *>* dwarf2_per_cu_data::imported_symtabs = nullptr |
Definition at line 246 of file read.h.
Referenced by compute_compunit_symtab_includes(), imported_symtabs_empty(), imported_symtabs_free(), imported_symtabs_push(), imported_symtabs_size(), and recursively_compute_inclusions().
unsigned dwarf2_per_cu_data::index = 0 |
Definition at line 192 of file read.h.
Referenced by create_addrmap_from_gdb_index(), dw2_expand_marked_cus(), dw2_symtab_iter_next(), cooked_index_storage::eq_cutu_reader(), cooked_index_storage::get_reader(), dwarf2_per_objfile::get_symtab(), cooked_index_storage::hash_cutu_reader(), dwarf2_per_objfile::set_symtab(), and dwarf2_per_objfile::symtab_set_p().
unsigned int dwarf2_per_cu_data::is_debug_types |
Definition at line 132 of file read.h.
Referenced by build_type_psymtabs_reader(), compute_compunit_symtab_includes(), create_cus_hash_table(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), dw2_do_instantiate_symtab(), dw2_get_file_names(), dw2_get_file_names_reader(), dwarf_decode_line_header(), follow_die_offset(), get_debug_line_section(), handle_DW_AT_stmt_list(), cutu_reader::init_tu_and_read_dwo_dies(), load_cu(), load_full_comp_unit(), load_full_type_unit(), lookup_dwo_comp_unit(), lookup_dwo_type_unit(), lookup_dwo_unit(), peek_die_abbrev(), process_enumeration_scope(), process_full_type_unit(), process_imported_unit_die(), process_psymtab_comp_unit(), process_queue(), queue_and_load_all_dwo_tus(), read_cutu_die_from_dwo(), read_signatured_type(), recursively_compute_inclusions(), dwarf2_cu::setup_type_unit_groups(), write_debug_names(), and write_gdbindex().
unsigned int dwarf2_per_cu_data::is_dwz |
Definition at line 135 of file read.h.
Referenced by create_cus_from_gdb_index_list(), dwarf2_fetch_constant_bytes(), dwarf2_fetch_die_type_sect_off(), dwarf2_find_containing_comp_unit(), dwarf2_find_containing_comp_unit(), dwarf_decode_line_header(), cooked_indexer::ensure_cu_exists(), follow_die_offset(), follow_die_ref(), get_abbrev_section_for_cu(), get_debug_line_section(), handle_DW_AT_stmt_list(), cooked_indexer::index_imported_unit(), process_imported_unit_die(), read_attribute_value(), cooked_indexer::recurse(), and write_gdbindex().
|
private |
Definition at line 126 of file read.h.
Referenced by set_version(), and version().
|
mutable |
Definition at line 209 of file read.h.
Referenced by get_header().
|
mutable |
Definition at line 169 of file read.h.
Referenced by get_header().
|
private |
Definition at line 184 of file read.h.
Referenced by lang(), and set_lang().
|
private |
Definition at line 123 of file read.h.
Referenced by length(), and set_length().
|
private |
Definition at line 181 of file read.h.
Referenced by set_unit_type(), and unit_type().
packed<unsigned int, 1> dwarf2_per_cu_data::mark |
Definition at line 173 of file read.h.
Referenced by dw2_expand_symtabs_matching_one().
dwarf2_per_bfd* dwarf2_per_cu_data::per_bfd = nullptr |
Definition at line 200 of file read.h.
Referenced by create_addrmap_from_gdb_index(), create_cus_from_gdb_index(), create_cus_from_gdb_index_list(), create_cus_hash_table(), create_signatured_type_table_from_gdb_index(), dwarf2_find_containing_comp_unit(), dwarf2_initialize_objfile(), fill_in_sig_entry_from_dwo_entry(), free_cached_file_names(), get_abbrev_section_for_cu(), and lookup_dwo_unit().
packed<bool, 1> dwarf2_per_cu_data::queued |
Definition at line 163 of file read.h.
Referenced by fill_in_sig_entry_from_dwo_entry(), maybe_queue_comp_unit(), process_queue(), queue_comp_unit(), and dwarf2_queue_item::~dwarf2_queue_item().
unsigned int dwarf2_per_cu_data::reading_dwo_directly |
Definition at line 141 of file read.h.
Referenced by cutu_reader::cutu_reader(), fill_in_sig_entry_from_dwo_entry(), and cutu_reader::init_tu_and_read_dwo_dies().
std::atomic<bool> dwarf2_per_cu_data::scanned |
Definition at line 189 of file read.h.
Referenced by cooked_indexer::ensure_cu_exists(), and process_psymtab_comp_unit().
sect_offset dwarf2_per_cu_data::sect_off {} |
Definition at line 120 of file read.h.
Referenced by dwarf2_per_objfile::age_comp_units(), create_cus_from_gdb_index_list(), create_cus_hash_table(), create_dwo_cu_reader(), create_signatured_type_table_from_gdb_index(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), dwarf2_fetch_die_loc_cu_off(), dwarf2_find_containing_comp_unit(), dwarf2_find_containing_comp_unit(), dwarf2_get_die_type(), fill_in_sig_entry_from_dwo_entry(), follow_die_offset(), get_header(), lookup_die_type(), lookup_dwo_cutu(), mark_common_block_symbol_computed(), prepare_one_comp_unit(), process_full_comp_unit(), process_queue(), read_comp_units_from_section(), write_debug_names(), and write_gdbindex().
struct dwarf2_section_info* dwarf2_per_cu_data::section = nullptr |
Definition at line 197 of file read.h.
Referenced by create_cus_from_gdb_index_list(), create_cus_hash_table(), create_dwo_cu_reader(), create_signatured_type_table_from_gdb_index(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), fill_in_sig_entry_from_dwo_entry(), get_gdb_index_contents_from_section(), init_cu_die_reader(), and read_cutu_die_from_dwo().
unsigned int dwarf2_per_cu_data::tu_read |
Definition at line 151 of file read.h.
Referenced by lookup_dwo_signatured_type(), and read_signatured_type().