GDB (xrefs)
|
#include "defs.h"
#include "dwarf2/read.h"
#include "dwarf2/abbrev.h"
#include "dwarf2/attribute.h"
#include "dwarf2/comp-unit-head.h"
#include "dwarf2/cu.h"
#include "dwarf2/index-cache.h"
#include "dwarf2/index-common.h"
#include "dwarf2/leb.h"
#include "dwarf2/line-header.h"
#include "dwarf2/dwz.h"
#include "dwarf2/macro.h"
#include "dwarf2/die.h"
#include "dwarf2/read-debug-names.h"
#include "dwarf2/read-gdb-index.h"
#include "dwarf2/sect-names.h"
#include "dwarf2/stringify.h"
#include "dwarf2/public.h"
#include "bfd.h"
#include "elf-bfd.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "objfiles.h"
#include "dwarf2.h"
#include "demangle.h"
#include "gdb-demangle.h"
#include "filenames.h"
#include "language.h"
#include "complaints.h"
#include "dwarf2/expr.h"
#include "dwarf2/loc.h"
#include "cp-support.h"
#include "hashtab.h"
#include "command.h"
#include "gdbcmd.h"
#include "block.h"
#include "addrmap.h"
#include "typeprint.h"
#include "c-lang.h"
#include "go-lang.h"
#include "valprint.h"
#include "gdbcore.h"
#include "gdb/gdb-index.h"
#include "gdb_bfd.h"
#include "f-lang.h"
#include "source.h"
#include "build-id.h"
#include "namespace.h"
#include "gdbsupport/function-view.h"
#include "gdbsupport/gdb_optional.h"
#include "gdbsupport/underlying.h"
#include "gdbsupport/hash_enum.h"
#include "filename-seen-cache.h"
#include "producer.h"
#include <fcntl.h>
#include <algorithm>
#include <unordered_map>
#include "gdbsupport/selftest.h"
#include "rust-lang.h"
#include "gdbsupport/pathstuff.h"
#include "count-one-bits.h"
#include <unordered_set>
#include "dwarf2/abbrev-cache.h"
#include "cooked-index.h"
#include "split-name.h"
#include "gdbsupport/parallel-for.h"
#include "gdbsupport/thread-pool.h"
Go to the source code of this file.
Classes | |
struct | dwop_section_names |
struct | loclists_rnglists_header |
struct | stmt_list_hash |
struct | type_unit_group |
struct | type_unit_group::hash |
struct | dwo_sections |
struct | dwo_unit |
struct | dwo_file |
struct | dwo_file::sections |
struct | dwp_sections |
struct | virtual_v1_dwo_sections |
struct | virtual_v2_or_v5_dwo_sections |
struct | dwp_hash_table |
struct | dwp_file |
struct | dwp_file::sections |
struct | die_reader_specs |
class | cutu_reader |
struct | variant_field |
struct | variant_part_builder |
struct | nextfield |
struct | nextfield::field |
struct | fnfieldlist |
struct | field_info |
class | dwarf2_queue_guard |
class | free_cached_comp_units |
struct | quick_file_names |
struct | readnow_functions |
class | cooked_index_storage |
class | cooked_indexer |
struct | cooked_indexer::deferred_entry |
struct | tu_abbrev_offset |
struct | skeleton_data |
class | process_die_scope |
struct | cooked_index_functions |
class | lnp_state_machine |
struct | dwarf2_per_cu_offset_and_type |
Macros | |
#define | dwarf_read_debug_printf(fmt, ...) |
#define | dwarf_read_debug_printf_v(fmt, ...) |
#define | LOCLIST_HEADER_SIZE32 12 |
#define | LOCLIST_HEADER_SIZE64 20 |
#define | RNGLIST_HEADER_SIZE32 12 |
#define | RNGLIST_HEADER_SIZE64 20 |
#define | MAX_NR_V2_DWO_SECTIONS |
#define | MAX_NR_V5_DWO_SECTIONS |
#define | NO_STMT_LIST_TYPE_UNIT_PSYMTAB (1 << 31) |
#define | NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE 10 |
#define | RUST_ENUM_PREFIX "RUST$ENCODED$ENUM$" |
#define | MAX_NESTED_IMPORTED_DECLARATIONS 100 |
#define | MAX_NR_V1_DWO_SECTIONS |
#define | GNAT_FIXED_POINT_SUFFIX "___XF_" |
#define | MAX_SEP_LEN 7 /* strlen ("__") + strlen ("_MOD_") */ |
Typedefs | |
typedef std::unique_ptr< struct dwo_file > | dwo_file_up |
typedef std::unordered_map< sect_offset, int, gdb::hash_enum< sect_offset > > | offset_map_type |
Enumerations | |
enum | dwp_v2_section_ids { DW_SECT_MIN = 1 } |
enum | pc_bounds_kind { PC_BOUNDS_NOT_PRESENT , PC_BOUNDS_INVALID , PC_BOUNDS_RANGES , PC_BOUNDS_HIGH_LOW } |
Functions | |
dwarf2_per_objfile * | get_dwarf2_per_objfile (struct objfile *objfile) |
static void | show_dwarf_max_cache_age (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | dwarf2_find_base_address (struct die_info *die, struct dwarf2_cu *cu) |
static void | build_type_psymtabs_reader (cutu_reader *reader, cooked_index_storage *storage) |
static void | dwarf2_build_psymtabs_hard (dwarf2_per_objfile *per_objfile) |
static void | var_decode_location (struct attribute *attr, struct symbol *sym, struct dwarf2_cu *cu) |
static unsigned int | peek_abbrev_code (bfd *, const gdb_byte *) |
static const gdb_byte * | read_attribute (const struct die_reader_specs *, struct attribute *, const struct attr_abbrev *, const gdb_byte *, bool allow_reprocess=true) |
static void | read_attribute_reprocess (const struct die_reader_specs *reader, struct attribute *attr, dwarf_tag tag=DW_TAG_padding) |
static unrelocated_addr | read_addr_index (struct dwarf2_cu *cu, unsigned int addr_index) |
static sect_offset | read_abbrev_offset (dwarf2_per_objfile *per_objfile, dwarf2_section_info *, sect_offset) |
static const char * | read_indirect_string (dwarf2_per_objfile *per_objfile, bfd *, const gdb_byte *, const struct comp_unit_head *, unsigned int *) |
static unrelocated_addr | read_addr_index_from_leb128 (struct dwarf2_cu *, const gdb_byte *, unsigned int *) |
static const char * | read_dwo_str_index (const struct die_reader_specs *reader, ULONGEST str_index) |
static const char * | read_stub_str_index (struct dwarf2_cu *cu, ULONGEST str_index) |
static struct attribute * | dwarf2_attr (struct die_info *, unsigned int, struct dwarf2_cu *) |
static const char * | dwarf2_string_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *cu) |
static const char * | dwarf2_dwo_name (struct die_info *die, struct dwarf2_cu *cu) |
static int | dwarf2_flag_true_p (struct die_info *die, unsigned name, struct dwarf2_cu *cu) |
static int | die_is_declaration (struct die_info *, struct dwarf2_cu *cu) |
static struct die_info * | die_specification (struct die_info *die, struct dwarf2_cu **) |
static line_header_up | dwarf_decode_line_header (sect_offset sect_off, struct dwarf2_cu *cu, const char *comp_dir) |
static void | dwarf_decode_lines (struct line_header *, struct dwarf2_cu *, unrelocated_addr, int decode_mapping) |
static void | dwarf2_start_subfile (dwarf2_cu *cu, const file_entry &fe, const line_header &lh) |
static struct symbol * | new_symbol (struct die_info *, struct type *, struct dwarf2_cu *, struct symbol *=NULL) |
static void | dwarf2_const_value (const struct attribute *, struct symbol *, struct dwarf2_cu *) |
static void | dwarf2_const_value_attr (const struct attribute *attr, struct type *type, const char *name, struct obstack *obstack, struct dwarf2_cu *cu, LONGEST *value, const gdb_byte **bytes, struct dwarf2_locexpr_baton **baton) |
static struct type * | read_subrange_index_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | die_type (struct die_info *, struct dwarf2_cu *) |
static int | need_gnat_info (struct dwarf2_cu *) |
static struct type * | die_descriptive_type (struct die_info *, struct dwarf2_cu *) |
static void | set_descriptive_type (struct type *, struct die_info *, struct dwarf2_cu *) |
static struct type * | die_containing_type (struct die_info *, struct dwarf2_cu *) |
static struct type * | lookup_die_type (struct die_info *, const struct attribute *, struct dwarf2_cu *) |
static struct type * | read_type_die (struct die_info *, struct dwarf2_cu *) |
static struct type * | read_type_die_1 (struct die_info *, struct dwarf2_cu *) |
static const char * | determine_prefix (struct die_info *die, struct dwarf2_cu *) |
static char * | typename_concat (struct obstack *obs, const char *prefix, const char *suffix, int physname, struct dwarf2_cu *cu) |
static void | read_file_scope (struct die_info *, struct dwarf2_cu *) |
static void | read_type_unit_scope (struct die_info *, struct dwarf2_cu *) |
static void | read_func_scope (struct die_info *, struct dwarf2_cu *) |
static void | read_lexical_block_scope (struct die_info *, struct dwarf2_cu *) |
static void | read_call_site_scope (struct die_info *die, struct dwarf2_cu *cu) |
static void | read_variable (struct die_info *die, struct dwarf2_cu *cu) |
static struct dwarf2_section_info * | cu_debug_loc_section (struct dwarf2_cu *cu) |
static struct dwarf2_section_info * | cu_debug_rnglists_section (struct dwarf2_cu *cu, dwarf_tag tag) |
static enum pc_bounds_kind | dwarf2_get_pc_bounds (struct die_info *, unrelocated_addr *, unrelocated_addr *, struct dwarf2_cu *, addrmap *, void *) |
static void | get_scope_pc_bounds (struct die_info *, unrelocated_addr *, unrelocated_addr *, struct dwarf2_cu *) |
static void | dwarf2_record_block_ranges (struct die_info *, struct block *, struct dwarf2_cu *) |
static void | dwarf2_add_field (struct field_info *, struct die_info *, struct dwarf2_cu *) |
static void | dwarf2_attach_fields_to_type (struct field_info *, struct type *, struct dwarf2_cu *) |
static void | dwarf2_add_member_fn (struct field_info *, struct die_info *, struct type *, struct dwarf2_cu *) |
static void | dwarf2_attach_fn_fields_to_type (struct field_info *, struct type *, struct dwarf2_cu *) |
static void | process_structure_scope (struct die_info *, struct dwarf2_cu *) |
static void | read_common_block (struct die_info *, struct dwarf2_cu *) |
static void | read_namespace (struct die_info *die, struct dwarf2_cu *) |
static void | read_module (struct die_info *die, struct dwarf2_cu *cu) |
static struct using_direct ** | using_directives (struct dwarf2_cu *cu) |
static void | read_import_statement (struct die_info *die, struct dwarf2_cu *) |
static bool | read_alias (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_module_type (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | namespace_name (struct die_info *die, int *is_anonymous, struct dwarf2_cu *) |
static void | process_enumeration_scope (struct die_info *, struct dwarf2_cu *) |
static bool | decode_locdesc (struct dwarf_block *, struct dwarf2_cu *, CORE_ADDR *addr) |
static enum dwarf_array_dim_ordering | read_array_order (struct die_info *, struct dwarf2_cu *) |
static struct die_info * | read_die_and_siblings_1 (const struct die_reader_specs *, const gdb_byte *, const gdb_byte **, struct die_info *) |
static struct die_info * | read_die_and_siblings (const struct die_reader_specs *, const gdb_byte *info_ptr, const gdb_byte **new_info_ptr, struct die_info *parent) |
static const gdb_byte * | read_full_die_1 (const struct die_reader_specs *, struct die_info **, const gdb_byte *, int, bool) |
static const gdb_byte * | read_toplevel_die (const struct die_reader_specs *, struct die_info **, const gdb_byte *, gdb::array_view< attribute * >={}) |
static void | process_die (struct die_info *, struct dwarf2_cu *) |
static const char * | dwarf2_canonicalize_name (const char *, struct dwarf2_cu *, struct objfile *) |
static const char * | dwarf2_name (struct die_info *die, struct dwarf2_cu *) |
static const char * | dwarf2_full_name (const char *name, struct die_info *die, struct dwarf2_cu *cu) |
static const char * | dwarf2_physname (const char *name, struct die_info *die, struct dwarf2_cu *cu) |
static struct die_info * | dwarf2_extension (struct die_info *die, struct dwarf2_cu **) |
static void | store_in_ref_table (struct die_info *, struct dwarf2_cu *) |
static struct die_info * | follow_die_ref_or_sig (struct die_info *, const struct attribute *, struct dwarf2_cu **) |
static struct die_info * | follow_die_ref (struct die_info *, const struct attribute *, struct dwarf2_cu **) |
static struct die_info * | follow_die_sig (struct die_info *, const struct attribute *, struct dwarf2_cu **) |
static struct type * | get_signatured_type (struct die_info *, ULONGEST, struct dwarf2_cu *) |
static struct type * | get_DW_AT_signature_type (struct die_info *, const struct attribute *, struct dwarf2_cu *) |
static void | load_full_type_unit (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile) |
static void | read_signatured_type (signatured_type *sig_type, dwarf2_per_objfile *per_objfile) |
static int | attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, struct dwarf2_cu *cu, struct dynamic_prop *prop, struct type *type) |
static struct dwarf_block * | dwarf_alloc_block (struct dwarf2_cu *) |
static void | dwarf_decode_macros (struct dwarf2_cu *, unsigned int, int) |
static void | fill_in_loclist_baton (struct dwarf2_cu *cu, struct dwarf2_loclist_baton *baton, const struct attribute *attr) |
static void | dwarf2_symbol_mark_computed (const struct attribute *attr, struct symbol *sym, struct dwarf2_cu *cu, int is_block) |
static const gdb_byte * | skip_one_die (const struct die_reader_specs *reader, const gdb_byte *info_ptr, const struct abbrev_info *abbrev, bool do_skip_children=true) |
static struct dwarf2_per_cu_data * | dwarf2_find_containing_comp_unit (sect_offset sect_off, unsigned int offset_in_dwz, dwarf2_per_bfd *per_bfd) |
static void | prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die, enum language pretend_language) |
static struct type * | set_die_type (struct die_info *, struct type *, struct dwarf2_cu *, bool=false) |
static void | create_all_units (dwarf2_per_objfile *per_objfile) |
static void | load_full_comp_unit (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, dwarf2_cu *existing_cu, bool skip_partial, enum language pretend_language) |
static void | process_full_comp_unit (dwarf2_cu *cu, enum language pretend_language) |
static void | process_full_type_unit (dwarf2_cu *cu, enum language pretend_language) |
static struct type * | get_die_type_at_offset (sect_offset, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile) |
static struct type * | get_die_type (struct die_info *die, struct dwarf2_cu *cu) |
static void | queue_comp_unit (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, enum language pretend_language) |
static void | process_queue (dwarf2_per_objfile *per_objfile) |
static bool | is_ada_import_or_export (dwarf2_cu *cu, const char *name, const char *linkagename) |
static file_and_directory & | find_file_and_directory (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | compute_include_file_name (const struct line_header *lh, const file_entry &fe, const file_and_directory &cu_info, std::string &name_holder) |
static htab_up | allocate_dwo_unit_table () |
static struct dwo_unit * | lookup_dwo_unit_in_dwp (dwarf2_per_objfile *per_objfile, struct dwp_file *dwp_file, const char *comp_dir, ULONGEST signature, int is_debug_types) |
static struct dwp_file * | get_dwp_file (dwarf2_per_objfile *per_objfile) |
static struct dwo_unit * | lookup_dwo_comp_unit (dwarf2_cu *cu, const char *dwo_name, const char *comp_dir, ULONGEST signature) |
static struct dwo_unit * | lookup_dwo_type_unit (dwarf2_cu *cu, const char *dwo_name, const char *comp_dir) |
static void | queue_and_load_all_dwo_tus (dwarf2_cu *cu) |
static void | process_cu_includes (dwarf2_per_objfile *per_objfile) |
static void | check_producer (struct dwarf2_cu *cu) |
static void | dwarf2_debug_line_missing_file_complaint (void) |
static void | dwarf2_debug_line_missing_end_sequence_complaint (void) |
static void | dwarf2_complex_location_expr_complaint (void) |
static void | dwarf2_const_value_length_mismatch_complaint (const char *arg1, int arg2, int arg3) |
static void | dwarf2_invalid_attrib_class_complaint (const char *arg1, const char *arg2) |
static hashval_t | line_header_hash (const struct line_header *ofs) |
static hashval_t | line_header_hash_voidp (const void *item) |
static int | line_header_eq_voidp (const void *item_lhs, const void *item_rhs) |
bool | dwarf2_has_info (struct objfile *objfile, const struct dwarf2_debug_sections *names, bool can_copy) |
void | dwarf2_get_section_info (struct objfile *objfile, enum dwarf2_section_enum sect, asection **sectp, const gdb_byte **bufp, bfd_size_type *sizep) |
static hashval_t | hash_stmt_list_entry (const struct stmt_list_hash *stmt_list_hash) |
static int | eq_stmt_list_entry (const struct stmt_list_hash *lhs, const struct stmt_list_hash *rhs) |
static hashval_t | hash_file_name_entry (const void *e) |
static int | eq_file_name_entry (const void *a, const void *b) |
htab_up | create_quick_file_names_table (unsigned int nr_initial_entries) |
static dwarf2_cu * | load_cu (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, bool skip_partial) |
static void | dw2_do_instantiate_symtab (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, bool skip_partial) |
static struct compunit_symtab * | dw2_instantiate_symtab (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, bool skip_partial) |
dwarf2_per_cu_data_up | create_cu_from_index_list (dwarf2_per_bfd *per_bfd, struct dwarf2_section_info *section, int is_dwz, sect_offset sect_off, ULONGEST length) |
bool | read_addrmap_from_aranges (dwarf2_per_objfile *per_objfile, dwarf2_section_info *section, addrmap *mutable_map) |
static void | dw2_get_file_names_reader (const struct die_reader_specs *reader, struct die_info *comp_unit_die) |
static struct quick_file_names * | dw2_get_file_names (dwarf2_per_cu_data *this_cu, dwarf2_per_objfile *per_objfile) |
static const char * | dw2_get_real_path (dwarf2_per_objfile *per_objfile, struct quick_file_names *qfn, int index) |
static std::string | make_sort_after_prefix_name (const char *search_name) |
bool | dw2_expand_symtabs_matching_symbol (mapped_index_base &index, const lookup_name_info &lookup_name_in, gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher, gdb::function_view< bool(offset_type)> match_callback, dwarf2_per_objfile *per_objfile) |
bool | dw2_expand_symtabs_matching_one (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify) |
void | dw_expand_symtabs_matching_file_matcher (dwarf2_per_objfile *per_objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher) |
static struct compunit_symtab * | recursively_find_pc_sect_compunit_symtab (struct compunit_symtab *cust, CORE_ADDR pc) |
template<typename T > | |
static gdb::array_view< const gdb_byte > | get_gdb_index_contents_from_section (objfile *obj, T *section_owner) |
static gdb::array_view< const gdb_byte > | get_gdb_index_contents_from_cache (objfile *obj, dwarf2_per_bfd *dwarf2_per_bfd) |
static gdb::array_view< const gdb_byte > | get_gdb_index_contents_from_cache_dwz (objfile *obj, dwz_file *dwz) |
static quick_symbol_functions_up | make_cooked_index_funcs () |
void | dwarf2_initialize_objfile (struct objfile *objfile) |
static void | dwarf2_build_psymtabs (struct objfile *objfile) |
static struct dwarf2_section_info * | get_abbrev_section_for_cu (struct dwarf2_per_cu_data *this_cu) |
static hashval_t | hash_signatured_type (const void *item) |
static int | eq_signatured_type (const void *item_lhs, const void *item_rhs) |
htab_up | allocate_signatured_type_table () |
static void | create_debug_type_hash_table (dwarf2_per_objfile *per_objfile, struct dwo_file *dwo_file, dwarf2_section_info *section, htab_up &types_htab, rcuh_kind section_kind) |
static void | create_debug_types_hash_table (dwarf2_per_objfile *per_objfile, struct dwo_file *dwo_file, gdb::array_view< dwarf2_section_info > type_sections, htab_up &types_htab) |
static struct signatured_type * | add_type_unit (dwarf2_per_objfile *per_objfile, ULONGEST sig, void **slot) |
static void | fill_in_sig_entry_from_dwo_entry (dwarf2_per_objfile *per_objfile, struct signatured_type *sig_entry, struct dwo_unit *dwo_entry) |
static struct signatured_type * | lookup_dwo_signatured_type (struct dwarf2_cu *cu, ULONGEST sig) |
static struct signatured_type * | lookup_dwp_signatured_type (struct dwarf2_cu *cu, ULONGEST sig) |
static struct signatured_type * | lookup_signatured_type (struct dwarf2_cu *cu, ULONGEST sig) |
static void | init_cu_die_reader (struct die_reader_specs *reader, struct dwarf2_cu *cu, struct dwarf2_section_info *section, struct dwo_file *dwo_file, struct abbrev_table *abbrev_table) |
static int | read_cutu_die_from_dwo (dwarf2_cu *cu, struct dwo_unit *dwo_unit, struct die_info *stub_comp_unit_die, const char *stub_comp_dir, struct die_reader_specs *result_reader, const gdb_byte **result_info_ptr, struct die_info **result_comp_unit_die, abbrev_table_up *result_dwo_abbrev_table) |
static gdb::optional< ULONGEST > | lookup_dwo_id (struct dwarf2_cu *cu, struct die_info *comp_unit_die) |
static struct dwo_unit * | lookup_dwo_unit (dwarf2_cu *cu, die_info *comp_unit_die, const char *dwo_name) |
static hashval_t | hash_type_unit_group (const void *item) |
static int | eq_type_unit_group (const void *item_lhs, const void *item_rhs) |
static htab_up | allocate_type_unit_groups_table () |
static std::unique_ptr< type_unit_group > | create_type_unit_group (struct dwarf2_cu *cu, sect_offset line_offset_struct) |
static struct type_unit_group * | get_type_unit_group (struct dwarf2_cu *cu, const struct attribute *stmt_list) |
static void | process_psymtab_comp_unit (dwarf2_per_cu_data *this_cu, dwarf2_per_objfile *per_objfile, cooked_index_storage *storage) |
static void | build_type_psymtabs (dwarf2_per_objfile *per_objfile, cooked_index_storage *storage) |
static void | print_tu_stats (dwarf2_per_objfile *per_objfile) |
static int | process_skeletonless_type_unit (void **slot, void *info) |
static int | process_dwo_file_for_skeletonless_type_units (void **slot, void *info) |
static void | process_skeletonless_type_units (dwarf2_per_objfile *per_objfile, cooked_index_storage *storage) |
static void | read_comp_units_from_section (dwarf2_per_objfile *per_objfile, struct dwarf2_section_info *section, struct dwarf2_section_info *abbrev_section, unsigned int is_dwz, htab_up &types_htab, rcuh_kind section_kind) |
void | finalize_all_units (dwarf2_per_bfd *per_bfd) |
static const struct abbrev_info * | peek_die_abbrev (const die_reader_specs &reader, const gdb_byte *info_ptr, unsigned int *bytes_read) |
static const gdb_byte * | skip_children (const struct die_reader_specs *reader, const gdb_byte *info_ptr) |
static int | maybe_queue_comp_unit (struct dwarf2_cu *dependent_cu, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, enum language pretend_language) |
static void | add_to_method_list (struct type *type, int fnfield_index, int index, const char *name, struct die_info *die, struct dwarf2_cu *cu) |
template<size_t N> | |
static bool | check_modifier (const char *physname, size_t &len, const char(&mod)[N]) |
static void | compute_delayed_physnames (struct dwarf2_cu *cu) |
static void | fixup_go_packaging (struct dwarf2_cu *cu) |
static const char * | rust_fully_qualify (struct obstack *obstack, const char *p1, const char *p2) |
static void | alloc_rust_variant (struct obstack *obstack, struct type *type, int discriminant_index, int default_index, gdb::array_view< discriminant_range > ranges) |
static void | quirk_rust_enum (struct type *type, struct objfile *objfile) |
static void | rust_union_quirks (struct dwarf2_cu *cu) |
static void | recursively_compute_inclusions (std::vector< compunit_symtab * > *result, htab_t all_children, htab_t all_type_symtabs, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, struct compunit_symtab *immediate_parent) |
static void | compute_compunit_symtab_includes (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile) |
static void | process_imported_unit_die (struct die_info *die, struct dwarf2_cu *cu) |
static int | die_needs_namespace (struct die_info *die, struct dwarf2_cu *cu) |
static struct attribute * | dw2_linkage_name_attr (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | dw2_linkage_name (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | dwarf2_compute_name (const char *name, struct die_info *die, struct dwarf2_cu *cu, int physname) |
static unsigned int | read_decl_line (struct die_info *die, struct dwarf2_cu *cu) |
static bool | producer_is_icc_lt_14 (struct dwarf2_cu *cu) |
static bool | producer_is_icc (struct dwarf2_cu *cu) |
static bool | producer_is_gcc_lt_4_3 (struct dwarf2_cu *cu) |
bool | producer_is_clang (struct dwarf2_cu *cu) |
static void | handle_DW_AT_stmt_list (struct die_info *die, struct dwarf2_cu *cu, const file_and_directory &fnd, unrelocated_addr lowpc, bool have_code) |
static hashval_t | hash_dwo_file (const void *item) |
static int | eq_dwo_file (const void *item_lhs, const void *item_rhs) |
static htab_up | allocate_dwo_file_hash_table () |
static void ** | lookup_dwo_file_slot (dwarf2_per_objfile *per_objfile, const char *dwo_name, const char *comp_dir) |
static hashval_t | hash_dwo_unit (const void *item) |
static int | eq_dwo_unit (const void *item_lhs, const void *item_rhs) |
static void | create_dwo_cu_reader (const struct die_reader_specs *reader, const gdb_byte *info_ptr, struct die_info *comp_unit_die, struct dwo_file *dwo_file, struct dwo_unit *dwo_unit) |
static void | create_cus_hash_table (dwarf2_per_objfile *per_objfile, dwarf2_cu *cu, struct dwo_file &dwo_file, dwarf2_section_info §ion, htab_up &cus_htab) |
static struct dwp_hash_table * | create_dwp_hash_table (dwarf2_per_objfile *per_objfile, struct dwp_file *dwp_file, int is_debug_types) |
static int | locate_v1_virtual_dwo_sections (asection *sectp, struct virtual_v1_dwo_sections *sections) |
static struct dwo_unit * | create_dwo_unit_in_dwp_v1 (dwarf2_per_objfile *per_objfile, struct dwp_file *dwp_file, uint32_t unit_index, const char *comp_dir, ULONGEST signature, int is_debug_types) |
static struct dwarf2_section_info | create_dwp_v2_or_v5_section (dwarf2_per_objfile *per_objfile, struct dwarf2_section_info *section, bfd_size_type offset, bfd_size_type size) |
static struct dwo_unit * | create_dwo_unit_in_dwp_v2 (dwarf2_per_objfile *per_objfile, struct dwp_file *dwp_file, uint32_t unit_index, const char *comp_dir, ULONGEST signature, int is_debug_types) |
static struct dwo_unit * | create_dwo_unit_in_dwp_v5 (dwarf2_per_objfile *per_objfile, struct dwp_file *dwp_file, uint32_t unit_index, const char *comp_dir, ULONGEST signature, int is_debug_types) |
static gdb_bfd_ref_ptr | try_open_dwop_file (dwarf2_per_objfile *per_objfile, const char *file_name, int is_dwp, int search_cwd) |
static gdb_bfd_ref_ptr | open_dwo_file (dwarf2_per_objfile *per_objfile, const char *file_name, const char *comp_dir) |
static void | dwarf2_locate_dwo_sections (struct objfile *objfile, bfd *abfd, asection *sectp, dwo_sections *dwo_sections) |
static struct dwo_file * | open_and_init_dwo_file (dwarf2_cu *cu, const char *dwo_name, const char *comp_dir) |
static void | dwarf2_locate_common_dwp_sections (struct objfile *objfile, bfd *abfd, asection *sectp, dwp_file *dwp_file) |
static void | dwarf2_locate_v2_dwp_sections (struct objfile *objfile, bfd *abfd, asection *sectp, void *dwp_file_ptr) |
static void | dwarf2_locate_v5_dwp_sections (struct objfile *objfile, bfd *abfd, asection *sectp, void *dwp_file_ptr) |
static hashval_t | hash_dwp_loaded_cutus (const void *item) |
static int | eq_dwp_loaded_cutus (const void *a, const void *b) |
static htab_up | allocate_dwp_loaded_cutus_table () |
static gdb_bfd_ref_ptr | open_dwp_file (dwarf2_per_objfile *per_objfile, const char *file_name) |
static std::unique_ptr< struct dwp_file > | open_and_init_dwp_file (dwarf2_per_objfile *per_objfile) |
static struct dwo_unit * | lookup_dwo_cutu (dwarf2_cu *cu, const char *dwo_name, const char *comp_dir, ULONGEST signature, int is_debug_types) |
static int | queue_and_load_dwo_tu (void **slot, void *info) |
static void | inherit_abstract_dies (struct die_info *die, struct dwarf2_cu *cu) |
static bool | dwarf2_func_is_main_p (struct die_info *die, struct dwarf2_cu *cu) |
static bool | check_ada_pragma_import (struct die_info *die, struct dwarf2_cu *cu) |
static void | dwarf2_ranges_read_low_addrs (unsigned offset, struct dwarf2_cu *cu, dwarf_tag tag, std::vector< unrelocated_addr > &result) |
static struct type * | rust_containing_type (struct die_info *die, struct dwarf2_cu *cu) |
template<typename Callback > | |
static bool | dwarf2_rnglists_process (unsigned offset, struct dwarf2_cu *cu, dwarf_tag tag, Callback &&callback) |
template<typename Callback > | |
static int | dwarf2_ranges_process (unsigned offset, struct dwarf2_cu *cu, dwarf_tag tag, Callback &&callback) |
static int | dwarf2_ranges_read (unsigned offset, unrelocated_addr *low_return, unrelocated_addr *high_return, struct dwarf2_cu *cu, addrmap *map, void *datum, dwarf_tag tag) |
static void | dwarf2_get_subprogram_pc_bounds (struct die_info *die, unrelocated_addr *lowpc, unrelocated_addr *highpc, struct dwarf2_cu *cu) |
static bool | producer_is_gxx_lt_4_6 (struct dwarf2_cu *cu) |
static bool | producer_is_codewarrior (struct dwarf2_cu *cu) |
static enum dwarf_access_attribute | dwarf2_access_attribute (struct die_info *die, struct dwarf2_cu *cu) |
static int | handle_member_location (struct die_info *die, struct dwarf2_cu *cu, LONGEST *offset) |
static void | handle_member_location (struct die_info *die, struct dwarf2_cu *cu, struct field *field) |
static bool | type_can_define_types (const struct die_info *die) |
static void | dwarf2_add_type_defn (struct field_info *fip, struct die_info *die, struct dwarf2_cu *cu) |
static const gdb::array_view< discriminant_range > | convert_variant_range (struct obstack *obstack, const variant_field &variant, bool is_unsigned) |
static const gdb::array_view< variant_part > | create_variant_parts (struct obstack *obstack, const offset_map_type &offset_map, struct field_info *fi, const std::vector< variant_part_builder > &variant_parts) |
static void | create_one_variant (variant &result, struct obstack *obstack, const offset_map_type &offset_map, struct field_info *fi, const variant_field &field) |
static void | create_one_variant_part (variant_part &result, struct obstack *obstack, const offset_map_type &offset_map, struct field_info *fi, const variant_part_builder &builder) |
static void | add_variant_property (struct field_info *fip, struct type *type, struct dwarf2_cu *cu) |
static int | dwarf2_is_constructor (struct die_info *die, struct dwarf2_cu *cu) |
static int | is_vtable_name (const char *name, struct dwarf2_cu *cu) |
static void | quirk_gcc_member_function_pointer (struct type *type, struct objfile *objfile) |
static struct type * | rewrite_array_type (struct type *type) |
static void | quirk_ada_thick_pointer_struct (struct die_info *die, struct dwarf2_cu *cu, struct type *type) |
static ULONGEST | get_alignment (struct dwarf2_cu *cu, struct die_info *die) |
static void | maybe_set_alignment (struct dwarf2_cu *cu, struct die_info *die, struct type *type) |
static bool | is_valid_DW_AT_calling_convention_for_type (ULONGEST value) |
static bool | is_valid_DW_AT_calling_convention_for_subroutine (ULONGEST value) |
static struct type * | read_structure_type (struct die_info *die, struct dwarf2_cu *cu) |
static void | handle_struct_member_die (struct die_info *child_die, struct type *type, struct field_info *fi, std::vector< struct symbol * > *template_args, struct dwarf2_cu *cu) |
static void | handle_variant_part (struct die_info *die, struct type *type, struct field_info *fi, std::vector< struct symbol * > *template_args, struct dwarf2_cu *cu) |
static void | handle_variant (struct die_info *die, struct type *type, struct field_info *fi, std::vector< struct symbol * > *template_args, struct dwarf2_cu *cu) |
static void | update_enumeration_type_from_children (struct die_info *die, struct type *type, struct dwarf2_cu *cu) |
static struct type * | read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu) |
static bool | recognize_bound_expression (struct die_info *die, enum dwarf_attribute name, int *bounds_offset, struct field *field, struct dwarf2_cu *cu) |
static struct type * | quirk_ada_thick_pointer (struct die_info *die, struct dwarf2_cu *cu, struct type *type) |
static struct type * | read_array_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_set_type (struct die_info *die, struct dwarf2_cu *cu) |
static void | mark_common_block_symbol_computed (struct symbol *sym, struct die_info *common_die, struct attribute *common_loc, struct attribute *member_loc, struct dwarf2_cu *cu) |
static struct type * | read_namespace_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_pointer_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_ptr_to_member_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_reference_type (struct die_info *die, struct dwarf2_cu *cu, enum type_code refcode) |
static struct type * | add_array_cv_type (struct die_info *die, struct dwarf2_cu *cu, struct type *base_type, int cnst, int voltl) |
static struct type * | read_tag_const_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_volatile_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_restrict_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_atomic_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_tag_string_type (struct die_info *die, struct dwarf2_cu *cu) |
static int | prototyped_function_p (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_subroutine_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_typedef (struct die_info *die, struct dwarf2_cu *cu) |
static void | get_mpz (struct dwarf2_cu *cu, gdb_mpz *value, struct attribute *attr) |
static void | get_dwarf2_rational_constant (struct die_info *die, struct dwarf2_cu *cu, gdb_mpz *numerator, gdb_mpz *denominator) |
static void | get_dwarf2_unsigned_rational_constant (struct die_info *die, struct dwarf2_cu *cu, gdb_mpz *numerator, gdb_mpz *denominator) |
static bool | ada_get_gnat_encoded_number (const char *encoding, int &k, gdb_mpz *result) |
static bool | ada_get_gnat_encoded_ratio (const char *encoding, int &offset, gdb_mpz *num, gdb_mpz *denom) |
static void | finish_fixed_point_type (struct type *type, const char *suffix, struct die_info *die, struct dwarf2_cu *cu) |
static const char * | gnat_encoded_fixed_point_type_info (const char *name) |
static struct type * | dwarf2_init_float_type (struct dwarf2_cu *cu, int bits, const char *name, const char *name_hint, enum bfd_endian byte_order) |
static struct type * | dwarf2_init_integer_type (struct dwarf2_cu *cu, int bits, int unsigned_p, const char *name) |
static bool | has_zero_over_zero_small_attribute (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | dwarf2_init_complex_target_type (struct dwarf2_cu *cu, int bits, const char *name_hint, enum bfd_endian byte_order) |
static struct type * | read_base_type (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | var_decl_name (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct type * | read_unspecified_type (struct die_info *die, struct dwarf2_cu *cu) |
static struct die_info * | read_die_and_children (const struct die_reader_specs *reader, const gdb_byte *info_ptr, const gdb_byte **new_info_ptr, struct die_info *parent) |
static bool | tag_can_have_linkage_name (enum dwarf_tag tag) |
static void | read_loclists_rnglists_header (struct loclists_rnglists_header *header, struct dwarf2_section_info *section, sect_offset header_offset) |
static ULONGEST | lookup_loclist_base (struct dwarf2_cu *cu) |
static sect_offset | read_loclist_index (struct dwarf2_cu *cu, ULONGEST loclist_index) |
static sect_offset | read_rnglist_index (struct dwarf2_cu *cu, ULONGEST rnglist_index, dwarf_tag tag) |
static const gdb_byte * | read_attribute_value (const struct die_reader_specs *reader, struct attribute *attr, unsigned form, LONGEST implicit_const, const gdb_byte *info_ptr, bool allow_reprocess) |
const char * | read_indirect_string_at_offset (dwarf2_per_objfile *per_objfile, LONGEST str_offset) |
static unrelocated_addr | read_addr_index_1 (dwarf2_per_objfile *per_objfile, unsigned int addr_index, gdb::optional< ULONGEST > addr_base, int addr_size) |
unrelocated_addr | dwarf2_read_addr_index (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, unsigned int addr_index) |
static const char * | read_str_index (struct dwarf2_cu *cu, struct dwarf2_section_info *str_section, struct dwarf2_section_info *str_offsets_section, ULONGEST str_offsets_base, ULONGEST str_index, unsigned offset_size) |
static int | leb128_size (const gdb_byte *buf) |
static enum language | dwarf_lang_to_enum_language (unsigned int lang) |
static struct dwarf2_section_info * | get_debug_line_section (struct dwarf2_cu *cu) |
static int | dwarf_record_line_p (struct dwarf2_cu *cu, unsigned int line, unsigned int last_line, int line_has_non_zero_discriminator, struct subfile *last_subfile) |
static void | dwarf_record_line_1 (struct gdbarch *gdbarch, struct subfile *subfile, unsigned int line, unrelocated_addr address, linetable_entry_flags flags, struct dwarf2_cu *cu) |
static void | dwarf_finish_line (struct gdbarch *gdbarch, struct subfile *subfile, unrelocated_addr address, struct dwarf2_cu *cu) |
static void | dwarf_decode_lines_1 (struct line_header *lh, struct dwarf2_cu *cu, unrelocated_addr lowpc) |
static void | add_ada_export_symbol (struct symbol *orig, const char *new_name, const char *orig_name, struct dwarf2_cu *cu, struct pending **list_to_add) |
static gdb_byte * | dwarf2_const_value_data (const struct attribute *attr, struct obstack *obstack, struct dwarf2_cu *cu, LONGEST *value, int bits) |
static struct type * | build_error_marker_type (struct dwarf2_cu *cu, struct die_info *die) |
static const char * | guess_full_die_structure_name (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | anonymous_struct_prefix (struct die_info *die, struct dwarf2_cu *cu) |
static const char * | unnamed_template_tag_name (die_info *die, dwarf2_cu *cu) |
static struct die_info * | follow_die_offset (sect_offset sect_off, int offset_in_dwz, struct dwarf2_cu **ref_cu) |
struct dwarf2_locexpr_baton | dwarf2_fetch_die_loc_sect_off (sect_offset sect_off, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, gdb::function_view< CORE_ADDR()> get_frame_pc, bool resolve_abstract_p) |
struct dwarf2_locexpr_baton | dwarf2_fetch_die_loc_cu_off (cu_offset offset_in_cu, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, gdb::function_view< CORE_ADDR()> get_frame_pc) |
static const gdb_byte * | write_constant_as_bytes (struct obstack *obstack, enum bfd_endian byte_order, struct type *type, ULONGEST value, LONGEST *len) |
const gdb_byte * | dwarf2_fetch_constant_bytes (sect_offset sect_off, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, obstack *obstack, LONGEST *len) |
struct type * | dwarf2_fetch_die_type_sect_off (sect_offset sect_off, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, const char **var_name) |
struct type * | dwarf2_get_die_type (cu_offset die_offset, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile) |
static struct die_info * | follow_die_sig_1 (struct die_info *src_die, struct signatured_type *sig_type, struct dwarf2_cu **ref_cu) |
static int | dwarf2_find_containing_comp_unit (sect_offset sect_off, unsigned int offset_in_dwz, const std::vector< dwarf2_per_cu_data_up > &all_units) |
static hashval_t | per_cu_offset_and_type_hash (const void *item) |
static int | per_cu_offset_and_type_eq (const void *item_lhs, const void *item_rhs) |
static void | show_check_physname (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | _initialize_dwarf2_read () |
Variables | |
static unsigned int | dwarf_read_debug = 0 |
static unsigned int | dwarf_die_debug = 0 |
unsigned int | dwarf_line_debug = 0 |
static bool | check_physname = false |
static const registry< objfile >::key< dwarf2_per_objfile > | dwarf2_objfile_data_key |
static const registry< bfd >::key< dwarf2_per_bfd > | dwarf2_per_bfd_bfd_data_key |
static const registry< objfile >::key< dwarf2_per_bfd > | dwarf2_per_bfd_objfile_data_key |
static int | dwarf2_locexpr_index |
static int | dwarf2_loclist_index |
static int | ada_imported_index |
static int | dwarf2_locexpr_block_index |
static int | dwarf2_loclist_block_index |
static int | ada_block_index |
const struct dwarf2_debug_sections | dwarf2_elf_names |
static const struct dwop_section_names | dwop_section_names |
static int | bits_per_byte = 8 |
static int | dwarf_max_cache_age = 5 |
struct cmd_list_element * | set_dwarf_cmdlist |
struct cmd_list_element * | show_dwarf_cmdlist |
#define dwarf_read_debug_printf | ( | fmt, | |
... ) |
Definition at line 106 of file read.c.
Referenced by build_type_psymtabs(), create_cus_hash_table(), create_debug_type_hash_table(), create_dwo_cu_reader(), create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_dwo_unit_in_dwp_v5(), dwarf2_build_psymtabs_hard(), dwarf2_initialize_objfile(), lookup_dwo_cutu(), open_and_init_dwo_file(), open_and_init_dwp_file(), print_tu_stats(), process_queue(), and read_comp_units_from_section().
#define dwarf_read_debug_printf_v | ( | fmt, | |
... ) |
Definition at line 112 of file read.c.
Referenced by dwarf2_per_objfile::age_comp_units(), create_debug_type_hash_table(), and follow_die_offset().
#define GNAT_FIXED_POINT_SUFFIX "___XF_" |
Definition at line 15078 of file read.c.
Referenced by gnat_encoded_fixed_point_type_info(), and read_base_type().
#define LOCLIST_HEADER_SIZE32 12 |
Definition at line 151 of file read.c.
Referenced by lookup_loclist_base(), and read_loclist_index().
#define LOCLIST_HEADER_SIZE64 20 |
Definition at line 154 of file read.c.
Referenced by lookup_loclist_base(), and read_loclist_index().
#define MAX_NESTED_IMPORTED_DECLARATIONS 100 |
#define MAX_NR_V1_DWO_SECTIONS |
#define MAX_NR_V2_DWO_SECTIONS |
Definition at line 477 of file read.c.
Referenced by create_dwp_hash_table().
#define MAX_NR_V5_DWO_SECTIONS |
Definition at line 492 of file read.c.
Referenced by create_dwp_hash_table().
#define MAX_SEP_LEN 7 /* strlen ("__") + strlen ("_MOD_") */ |
Definition at line 20175 of file read.c.
Referenced by typename_concat().
#define NO_STMT_LIST_TYPE_UNIT_PSYMTAB (1 << 31) |
Definition at line 4529 of file read.c.
Referenced by get_type_unit_group().
#define NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE 10 |
Definition at line 4530 of file read.c.
Referenced by get_type_unit_group().
#define RNGLIST_HEADER_SIZE32 12 |
Definition at line 157 of file read.c.
Referenced by read_rnglist_index().
#define RNGLIST_HEADER_SIZE64 20 |
Definition at line 160 of file read.c.
Referenced by read_rnglist_index().
#define RUST_ENUM_PREFIX "RUST$ENCODED$ENUM$" |
typedef std::unique_ptr<struct dwo_file> dwo_file_up |
typedef std::unordered_map<sect_offset, int, gdb::hash_enum<sect_offset> > offset_map_type |
enum dwp_v2_section_ids |
enum pc_bounds_kind |
void _initialize_dwarf2_read | ( | ) |
Definition at line 22048 of file read.c.
Referenced by initialize_all_files().
|
static |
Definition at line 14942 of file read.c.
References gdb_mpz::set().
Referenced by ada_get_gnat_encoded_ratio().
|
static |
Definition at line 14969 of file read.c.
References ada_get_gnat_encoded_number().
Referenced by finish_fixed_point_type().
|
static |
Definition at line 18931 of file read.c.
References ada_block_index, ada_imported_index, add_symbol_to_list(), LOC_BLOCK, dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_objfile, general_symbol_info::set_linkage_name(), and SYMBOL_LOCATION_BATON.
Referenced by new_symbol().
|
static |
Definition at line 14383 of file read.c.
References type::code(), copy_type(), make_cv_type(), set_die_type(), type::set_target_type(), type::target_type(), TYPE_CONST, and TYPE_VOLATILE.
Referenced by read_tag_const_type(), and read_tag_volatile_type().
|
static |
Definition at line 5765 of file read.c.
References delayed_method_info::die, delayed_method_info::fnfield_index, delayed_method_info::index, dwarf2_cu::method_list, name, delayed_method_info::name, delayed_method_info::type, and type.
Referenced by dwarf2_add_member_fn().
|
static |
Definition at line 3690 of file read.c.
References dwarf2_per_bfd::all_units, dwarf2_per_bfd::allocate_signatured_type(), dwarf2_per_objfile::per_bfd, and dwarf2_per_bfd::signatured_types.
Referenced by lookup_dwo_signatured_type(), lookup_dwp_signatured_type(), and process_skeletonless_type_unit().
|
static |
Definition at line 12029 of file read.c.
References type::add_dyn_prop(), create_variant_parts(), DYN_PROP_VARIANT_PARTS, field_info::fields, dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_objfile, dynamic_prop::set_variant_parts(), and field_info::variant_parts.
Referenced by dwarf2_attach_fields_to_type().
|
static |
Definition at line 5938 of file read.c.
References type::add_dyn_prop(), variant_part::discriminant_index, DYN_PROP_VARIANT_PARTS, type::field(), variant_part::is_unsigned, type::is_unsigned(), type::num_fields(), general_symbol_info::obstack, dynamic_prop::set_variant_parts(), field::type(), variant_part::variants, and variants.
Referenced by quirk_rust_enum().
|
static |
Definition at line 7904 of file read.c.
References eq_dwo_file(), hash_dwo_file(), xcalloc(), and xfree().
Referenced by lookup_dwo_file_slot().
|
static |
Definition at line 7960 of file read.c.
References eq_dwo_unit(), hash_dwo_unit(), xcalloc(), and xfree().
Referenced by create_cus_hash_table(), and create_debug_type_hash_table().
|
static |
Definition at line 9485 of file read.c.
References eq_dwp_loaded_cutus(), hash_dwp_loaded_cutus(), xcalloc(), and xfree().
Referenced by open_and_init_dwp_file().
htab_up allocate_signatured_type_table | ( | ) |
Definition at line 3561 of file read.c.
References eq_signatured_type(), hash_signatured_type(), xcalloc(), and xfree().
Referenced by create_signatured_type_table_from_debug_names(), create_signatured_type_table_from_gdb_index(), lookup_dwo_signatured_type(), lookup_dwp_signatured_type(), process_skeletonless_type_unit(), and read_comp_units_from_section().
|
static |
Definition at line 4517 of file read.c.
References eq_type_unit_group(), hash_type_unit_group(), xcalloc(), and xfree().
Referenced by get_type_unit_group().
Definition at line 19966 of file read.c.
References attribute::as_string(), attribute::canonical_string_p(), dw2_linkage_name_attr(), dwarf2_string_attr(), dwarf2_per_objfile::objfile, objfile::per_bfd, dwarf2_cu::per_objfile, objfile_per_bfd_storage::storage_obstack, and die_info::tag.
Referenced by determine_prefix().
|
static |
Definition at line 15464 of file read.c.
References attribute::as_block(), dynamic_prop::baton(), attribute::constant_value(), dwarf_block::data, dwarf2_locexpr_baton::data, die_type(), dwarf2_attr(), dwarf2_invalid_attrib_class_complaint(), dwarf2_name(), dwarf_form_name(), fill_in_loclist_baton(), follow_die_ref(), attribute::form, attribute::form_is_block(), attribute::form_is_constant(), attribute::form_is_ref(), attribute::form_is_section_offset(), handle_member_location(), dwarf2_locexpr_baton::is_reference, dwarf2_property_baton::locexpr, dwarf2_property_baton::loclist, name, attribute::name, dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_offset_baton::offset, dwarf2_property_baton::offset_info, die_info::parent, dwarf2_cu::per_cu, dwarf2_locexpr_baton::per_cu, dwarf2_cu::per_objfile, dwarf2_locexpr_baton::per_objfile, dwarf2_property_baton::property_type, read_type_die(), dynamic_prop::set_addr_offset(), dynamic_prop::set_const_val(), dynamic_prop::set_locexpr(), dynamic_prop::set_loclist(), dynamic_prop::set_variable_name(), dwarf2_locexpr_baton::size, dwarf2_offset_baton::type, and var_decl_name().
Referenced by read_array_type(), read_func_scope(), read_structure_type(), read_subrange_type(), read_tag_string_type(), and set_die_type().
|
static |
Definition at line 19698 of file read.c.
References dwarf2_cu::header, dwarf2_cu::lang(), type_allocator::new_type(), dwarf2_per_objfile::objfile, objfile_name(), objfile::objfile_obstack, dwarf2_cu::per_objfile, comp_unit_head::sect_off, die_info::sect_off, and sect_offset_str().
Referenced by get_DW_AT_signature_type(), get_signatured_type(), and lookup_die_type().
|
static |
Definition at line 4914 of file read.c.
References dwarf2_per_bfd::abbrev, dwarf2_per_bfd::all_type_units, dwarf2_per_bfd::all_units, build_type_psymtabs_reader(), cutu_reader::dummy_p, dwarf_read_debug_printf, tu_stats::nr_uniq_abbrev_tables, dwarf2_per_objfile::objfile, dwarf2_per_objfile::per_bfd, abbrev_table::read(), dwarf2_section_info::read(), read_abbrev_offset(), and dwarf2_per_bfd::type_unit_groups.
Referenced by dwarf2_build_psymtabs_hard().
|
static |
Definition at line 4859 of file read.c.
References cutu_reader::comp_unit_die, die_reader_specs::cu, die_info::has_children, dwarf2_per_cu_data::is_debug_types, dwarf2_cu::lang(), language_minimal, cooked_indexer::make_index(), dwarf2_cu::per_cu, and prepare_one_comp_unit().
Referenced by build_type_psymtabs(), process_psymtab_comp_unit(), and process_skeletonless_type_unit().
Definition at line 10048 of file read.c.
References die_is_declaration(), dw2_linkage_name(), dwarf2_name(), is_ada_import_or_export(), name, new_symbol(), and read_type_die().
Referenced by read_func_scope().
|
static |
Definition at line 5784 of file read.c.
Referenced by compute_delayed_physnames().
|
static |
Definition at line 11399 of file read.c.
References dwarf2_cu::checked_producer, dwarf2_cu::producer, dwarf2_cu::producer_is_clang, producer_is_clang(), dwarf2_cu::producer_is_codewarrior, producer_is_gcc(), dwarf2_cu::producer_is_gcc_11, dwarf2_cu::producer_is_gcc_lt_4_3, dwarf2_cu::producer_is_gxx_lt_4_6, dwarf2_cu::producer_is_icc, producer_is_icc(), and dwarf2_cu::producer_is_icc_lt_14.
Referenced by producer_is_clang(), producer_is_codewarrior(), producer_is_gcc_lt_4_3(), producer_is_gxx_lt_4_6(), producer_is_icc(), and producer_is_icc_lt_14().
|
static |
Definition at line 6334 of file read.c.
References dwarf2_per_objfile::get_symtab(), dwarf2_per_cu_data::imported_symtabs, dwarf2_per_cu_data::imported_symtabs_empty(), compunit_symtab::includes, dwarf2_per_cu_data::is_debug_types, dwarf2_per_objfile::objfile, objfile::objfile_obstack, recursively_compute_inclusions(), xcalloc(), and xfree().
Referenced by process_cu_includes().
|
static |
Definition at line 5802 of file read.c.
References check_modifier(), dwarf2_physname(), fn_fieldlist::fn_fields, dwarf2_cu::lang(), language_cplus, dwarf2_cu::method_list, TYPE_FN_FIELD_CONST, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_VOLATILE, and TYPE_FN_FIELDLIST.
Referenced by inherit_abstract_dies(), process_full_comp_unit(), and process_full_type_unit().
|
static |
Definition at line 18044 of file read.c.
References file_and_directory::get_comp_dir(), file_and_directory::get_name(), file_entry::include_dir(), and file_entry::name.
Referenced by dw2_get_file_names_reader().
|
static |
Definition at line 11869 of file read.c.
References complaint, read_signed_leb128(), and read_unsigned_leb128().
Referenced by create_one_variant().
|
static |
Definition at line 5284 of file read.c.
References dwarf2_per_bfd::abbrev, dwarf2_per_bfd::all_units, COMPILE, dwarf2_get_dwz_file(), finalize_all_units(), dwarf2_per_bfd::info, dwarf2_per_objfile::objfile, dwarf2_per_objfile::per_bfd, read_comp_units_from_section(), dwarf2_per_bfd::signatured_types, TYPE, and dwarf2_per_bfd::types.
Referenced by dwarf2_build_psymtabs_hard(), and dwarf2_initialize_objfile().
dwarf2_per_cu_data_up create_cu_from_index_list | ( | dwarf2_per_bfd * | per_bfd, |
struct dwarf2_section_info * | section, | ||
int | is_dwz, | ||
sect_offset | sect_off, | ||
ULONGEST | length ) |
Definition at line 1826 of file read.c.
References dwarf2_per_bfd::allocate_per_cu().
Referenced by create_cus_from_debug_names_list(), and create_cus_from_gdb_index_list().
|
static |
Definition at line 8007 of file read.c.
References allocate_dwo_unit_table(), dwarf2_section_info::buffer, cutu_reader::comp_unit_die, complaint, create_dwo_cu_reader(), cutu_reader::dummy_p, dwarf_read_debug_printf, dwo_unit::dwo_file, dwarf2_section_info::get_file_name(), dwarf2_section_info::get_name(), cutu_reader::info_ptr, dwarf2_per_cu_data::is_debug_types, dwarf2_per_cu_data::length(), dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, dwarf2_per_cu_data::per_bfd, dwarf2_per_objfile::per_bfd, objfile::per_bfd, dwarf2_section_info::read(), dwo_unit::sect_off, dwarf2_per_cu_data::sect_off, sect_offset_str(), dwo_unit::section, dwarf2_per_cu_data::section, dwo_unit::signature, and dwarf2_section_info::size.
Referenced by open_and_init_dwo_file().
|
static |
Definition at line 3574 of file read.c.
References allocate_dwo_unit_table(), dwarf2_section_info::buffer, complaint, dwarf_read_debug_printf, dwarf_read_debug_printf_v, dwo_unit::dwo_file, dwarf2_section_info::get_file_name(), comp_unit_head::get_length_with_initial(), dwo_unit::length, dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, peek_abbrev_code(), dwarf2_per_objfile::per_bfd, read_and_check_comp_unit_head(), comp_unit_head::sect_off, dwo_unit::sect_off, sect_offset_str(), dwo_unit::section, dwarf2_section_info::section, comp_unit_head::signature, dwo_unit::signature, comp_unit_head::type_cu_offset_in_tu, and dwo_unit::type_offset_in_tu.
Referenced by create_debug_types_hash_table(), and open_and_init_dwo_file().
|
static |
Definition at line 3675 of file read.c.
References create_debug_type_hash_table(), and TYPE.
Referenced by open_and_init_dwo_file().
|
static |
Definition at line 7973 of file read.c.
References complaint, die_reader_specs::cu, dwarf_read_debug_printf, dwo_unit::dwo_file, dwo_file::dwo_name, dwo_unit::length, dwarf2_per_cu_data::length(), lookup_dwo_id(), dwarf2_cu::per_cu, dwo_unit::sect_off, dwarf2_per_cu_data::sect_off, sect_offset_str(), dwo_unit::section, dwarf2_per_cu_data::section, dwarf2_section_info::section, and dwo_unit::signature.
Referenced by create_cus_hash_table().
|
static |
Definition at line 8536 of file read.c.
References virtual_v1_dwo_sections::abbrev, dwo_file::comp_dir, dwp_file::cus, dwp_file::dbfd, dwarf_read_debug_printf, dwo_unit::dwo_file, dwo_file::dwo_file(), dwo_file::dwo_name, dwp_file::elf_sections, dwarf2_section_info::empty(), dwarf2_section_info::get_id(), dwp_hash_table::indices, virtual_v1_dwo_sections::info_or_types, objfile::intern(), virtual_v1_dwo_sections::line, virtual_v1_dwo_sections::loc, locate_v1_virtual_dwo_sections(), lookup_dwo_file_slot(), virtual_v1_dwo_sections::macinfo, virtual_v1_dwo_sections::macro, MAX_NR_V1_DWO_SECTIONS, dwp_file::name, dwp_file::num_sections, dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, dwarf2_per_objfile::per_bfd, read_4_bytes(), dwo_unit::section, dwp_hash_table::section_pool, dwo_unit::signature, virtual_v1_dwo_sections::str_offsets, dwp_file::tus, dwp_hash_table::v1, and dwp_file::version.
Referenced by lookup_dwo_unit_in_dwp().
|
static |
Definition at line 8725 of file read.c.
References virtual_v2_or_v5_dwo_sections::abbrev_offset, virtual_v2_or_v5_dwo_sections::abbrev_size, dwo_file::comp_dir, create_dwp_v2_or_v5_section(), dwp_file::cus, dwp_file::dbfd, dwarf_read_debug_printf, dwo_unit::dwo_file, dwo_file::dwo_file(), dwo_file::dwo_name, virtual_v2_or_v5_dwo_sections::info_or_types_offset, virtual_v2_or_v5_dwo_sections::info_or_types_size, objfile::intern(), virtual_v2_or_v5_dwo_sections::line_offset, virtual_v2_or_v5_dwo_sections::line_size, virtual_v2_or_v5_dwo_sections::loc_offset, virtual_v2_or_v5_dwo_sections::loc_size, lookup_dwo_file_slot(), virtual_v2_or_v5_dwo_sections::macinfo_offset, virtual_v2_or_v5_dwo_sections::macinfo_size, virtual_v2_or_v5_dwo_sections::macro_offset, virtual_v2_or_v5_dwo_sections::macro_size, dwp_file::name, dwp_hash_table::nr_columns, dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, dwp_hash_table::offsets, dwarf2_per_objfile::per_bfd, read_4_bytes(), dwo_unit::section, dwp_hash_table::section_ids, dwp_hash_table::section_pool, dwo_unit::signature, size, dwp_hash_table::sizes, virtual_v2_or_v5_dwo_sections::str_offsets_offset, virtual_v2_or_v5_dwo_sections::str_offsets_size, dwp_file::tus, dwp_hash_table::v2, and dwp_file::version.
Referenced by lookup_dwo_unit_in_dwp().
|
static |
Definition at line 8892 of file read.c.
References virtual_v2_or_v5_dwo_sections::abbrev_offset, virtual_v2_or_v5_dwo_sections::abbrev_size, dwo_file::comp_dir, create_dwp_v2_or_v5_section(), dwp_file::cus, dwp_file::dbfd, dwarf_read_debug_printf, dwo_unit::dwo_file, dwo_file::dwo_file(), dwo_file::dwo_name, virtual_v2_or_v5_dwo_sections::info_or_types_offset, virtual_v2_or_v5_dwo_sections::info_or_types_size, objfile::intern(), virtual_v2_or_v5_dwo_sections::line_offset, virtual_v2_or_v5_dwo_sections::line_size, virtual_v2_or_v5_dwo_sections::loclists_offset, virtual_v2_or_v5_dwo_sections::loclists_size, lookup_dwo_file_slot(), virtual_v2_or_v5_dwo_sections::macro_offset, virtual_v2_or_v5_dwo_sections::macro_size, dwp_file::name, dwp_hash_table::nr_columns, dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, dwp_hash_table::offsets, dwarf2_per_objfile::per_bfd, read_4_bytes(), virtual_v2_or_v5_dwo_sections::rnglists_offset, virtual_v2_or_v5_dwo_sections::rnglists_size, dwo_unit::section, dwp_hash_table::section_ids, dwp_hash_table::section_pool, dwo_unit::signature, size, dwp_hash_table::sizes, virtual_v2_or_v5_dwo_sections::str_offsets_offset, virtual_v2_or_v5_dwo_sections::str_offsets_size, dwp_file::tus, dwp_hash_table::v5, and dwp_file::version.
Referenced by lookup_dwo_unit_in_dwp().
|
static |
Definition at line 8225 of file read.c.
References dwarf2_section_info::buffer, complaint, dwp_file::dbfd, dwarf2_section_info::empty(), dwp_hash_table::hash_table, dwp_hash_table::indices, MAX_NR_V2_DWO_SECTIONS, MAX_NR_V5_DWO_SECTIONS, dwp_file::name, dwp_hash_table::nr_columns, dwp_hash_table::nr_slots, dwp_hash_table::nr_units, dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, dwp_hash_table::offsets, dwarf2_per_objfile::per_bfd, dwarf2_section_info::read(), read_4_bytes(), dwp_hash_table::section_ids, dwp_hash_table::section_pool, dwarf2_section_info::size, dwp_hash_table::sizes, dwp_hash_table::unit_table, dwp_hash_table::v1, dwp_hash_table::v2, dwp_hash_table::v5, version, and dwp_hash_table::version.
Referenced by open_and_init_dwp_file().
|
static |
Definition at line 8683 of file read.c.
References dwarf2_section_info::containing_section, dwarf2_section_info::get_bfd_section(), dwarf2_section_info::is_virtual, objfile_name(), dwarf2_section_info::s, dwarf2_section_info::section, dwarf2_section_info::size, size, and dwarf2_section_info::virtual_offset.
Referenced by create_dwo_unit_in_dwp_v2(), and create_dwo_unit_in_dwp_v5().
|
static |
Definition at line 11953 of file read.c.
References field_info::baseclasses, convert_variant_range(), create_variant_parts(), variant::discriminants, variant::first_field, variant::last_field, and variant::parts.
Referenced by create_one_variant_part().
|
static |
Definition at line 11972 of file read.c.
References create_one_variant(), variant_part::discriminant_index, variant_part_builder::discriminant_offset, field_info::fields, variant_part::is_unsigned, variant_part_builder::variants, and variant_part::variants.
Referenced by create_variant_parts().
htab_up create_quick_file_names_table | ( | unsigned int | nr_initial_entries | ) |
Definition at line 1710 of file read.c.
References eq_file_name_entry(), hash_file_name_entry(), xcalloc(), and xfree().
Referenced by dwarf2_build_psymtabs_hard(), dwarf2_initialize_objfile(), dwarf2_read_debug_names(), and dwarf2_read_gdb_index().
|
static |
Definition at line 4536 of file read.c.
References dwarf2_cu::dwo_unit.
Referenced by get_type_unit_group().
|
static |
Definition at line 12008 of file read.c.
References create_one_variant_part().
Referenced by add_variant_property(), and create_one_variant().
|
static |
Definition at line 21414 of file read.c.
References dwo_unit::dwo_file, dwarf2_cu::dwo_unit, dwarf2_cu::header, dwo_sections::loc, dwarf2_per_bfd::loc, dwo_sections::loclists, dwarf2_per_bfd::loclists, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, and comp_unit_head::version.
Referenced by dwarf2_symbol_mark_computed(), fill_in_loclist_baton(), and read_loclist_index().
|
static |
Definition at line 21430 of file read.c.
References dwo_unit::dwo_file, dwarf2_cu::dwo_unit, dwarf2_cu::header, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwo_sections::rnglists, dwarf2_per_bfd::rnglists, dwarf2_section_info::size, and comp_unit_head::version.
Referenced by dwarf2_rnglists_process(), and read_rnglist_index().
|
static |
Definition at line 21151 of file read.c.
References complaint, dwarf_block::data, dwarf2_cu::header, objfile::obfd, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, read_1_byte(), read_1_signed_byte(), read_2_bytes(), read_2_signed_bytes(), read_4_bytes(), read_4_signed_bytes(), read_8_bytes(), read_addr_index_from_leb128(), comp_unit_head::read_address(), read_signed_leb128(), read_unsigned_leb128(), dwarf_block::size, and size.
Referenced by dwarf2_add_member_fn(), handle_member_location(), handle_member_location(), and cooked_indexer::scan_attributes().
Definition at line 20013 of file read.c.
References anonymous_struct_prefix(), die_info::building_fullname, die_info::child, complaint, determine_prefix(), die_specification(), dwarf2_name(), guess_full_die_structure_name(), type::is_declared_class(), dwarf2_cu::lang(), language_cplus, language_d, language_fortran, language_rust, name, type::name(), die_info::parent, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, read_type_die(), die_info::tag, and dwarf2_per_bfd::types.
Referenced by determine_prefix(), dwarf2_compute_name(), read_func_scope(), read_import_statement(), read_namespace(), and read_namespace_type().
Definition at line 19682 of file read.c.
References dwarf2_attr(), lookup_die_type(), dwarf2_per_objfile::objfile, objfile_name(), and dwarf2_cu::per_objfile.
Referenced by dwarf2_add_member_fn(), process_structure_scope(), read_tag_ptr_to_member_type(), and rust_containing_type().
Definition at line 19651 of file read.c.
References dwarf2_attr(), and lookup_die_type().
Referenced by set_descriptive_type().
Definition at line 17945 of file read.c.
References dwarf2_attr(), and dwarf2_flag_true_p().
Referenced by check_ada_pragma_import(), dwarf2_add_field(), new_symbol(), process_enumeration_scope(), process_structure_scope(), read_call_site_scope(), read_enumeration_type(), and read_structure_type().
Definition at line 6770 of file read.c.
References die_needs_namespace(), die_specification(), dwarf2_attr(), die_info::parent, and die_info::tag.
Referenced by die_needs_namespace(), dwarf2_compute_name(), and dwarf2_physname().
|
static |
Definition at line 17965 of file read.c.
References dwarf2_attr(), and follow_die_ref().
Referenced by determine_prefix(), die_needs_namespace(), guess_full_die_structure_name(), and read_func_scope().
Definition at line 19619 of file read.c.
References builtin_type(), builtin_type::builtin_void, dwarf2_attr(), lookup_die_type(), dwarf2_per_objfile::objfile, and dwarf2_cu::per_objfile.
Referenced by attr_to_dynamic_prop(), dwarf2_add_field(), dwarf2_compute_name(), dwarf2_fetch_constant_bytes(), dwarf2_fetch_die_type_sect_off(), dwarf2_get_symbol_read_needs(), new_symbol(), read_alias(), read_array_type(), read_enumeration_type(), read_set_type(), read_subrange_index_type(), read_subroutine_type(), read_tag_atomic_type(), read_tag_const_type(), read_tag_pointer_type(), read_tag_ptr_to_member_type(), read_tag_reference_type(), read_tag_restrict_type(), read_tag_volatile_type(), read_typedef(), and sect_variable_value().
|
static |
Definition at line 1743 of file read.c.
References dwarf2_per_objfile::age_comp_units(), dwarf2_cu::dwo_unit, get_dwp_file(), dwarf2_per_bfd::index_table, dwarf2_per_cu_data::is_debug_types, language_minimal, load_cu(), dwarf2_per_objfile::per_bfd, process_queue(), queue_and_load_all_dwo_tus(), queue_comp_unit(), and dwarf2_per_objfile::symtab_set_p().
Referenced by dw2_instantiate_symtab().
bool dw2_expand_symtabs_matching_one | ( | dwarf2_per_cu_data * | per_cu, |
dwarf2_per_objfile * | per_objfile, | ||
gdb::function_view< expand_symtabs_file_matcher_ftype > | file_matcher, | ||
gdb::function_view< expand_symtabs_exp_notify_ftype > | expansion_notify ) |
Definition at line 3031 of file read.c.
References dw2_instantiate_symtab(), dwarf2_per_cu_data::mark, and dwarf2_per_objfile::symtab_set_p().
Referenced by dw2_expand_marked_cus(), dwarf2_debug_names_index::expand_matching_symbols(), dwarf2_gdb_index::expand_matching_symbols(), dwarf2_debug_names_index::expand_symtabs_matching(), dwarf2_gdb_index::expand_symtabs_matching(), and cooked_index_functions::expand_symtabs_matching().
bool dw2_expand_symtabs_matching_symbol | ( | mapped_index_base & | index, |
const lookup_name_info & | lookup_name_in, | ||
gdb::function_view< expand_symtabs_symbol_matcher_ftype > | symbol_matcher, | ||
gdb::function_view< bool(offset_type)> | match_callback, | ||
dwarf2_per_objfile * | per_objfile ) |
Definition at line 2476 of file read.c.
References mapped_index_base::build_name_components(), mapped_index_base::find_name_components_bounds(), language_defn::get_symbol_name_matcher(), language_def(), lookup_name_info::language_lookup_name(), lookup_name_info::make_ignore_params(), name, nr_languages, operator==(), and mapped_index_base::symbol_name_at().
Referenced by dwarf2_debug_names_index::expand_matching_symbols(), dwarf2_gdb_index::expand_matching_symbols(), dwarf2_debug_names_index::expand_symtabs_matching(), and dwarf2_gdb_index::expand_symtabs_matching().
|
static |
Definition at line 2119 of file read.c.
References cutu_reader::comp_unit_die, cutu_reader::dummy_p, dw2_get_file_names_reader(), dwarf2_per_cu_data::file_names, dwarf2_per_cu_data::files_read, and dwarf2_per_cu_data::is_debug_types.
Referenced by dw_expand_symtabs_matching_file_matcher(), and dwarf2_base_index_functions::map_symbol_filenames().
|
static |
Definition at line 2020 of file read.c.
References attribute::as_unsigned(), quick_file_names::comp_dir, compute_include_file_name(), die_reader_specs::cu, dwarf2_attr(), dwarf_decode_line_header(), dwarf2_cu::dwo_unit, stmt_list_hash::dwo_unit, quick_file_names::file_names, dwarf2_per_cu_data::file_names, dwarf2_per_cu_data::files_read, find_file_and_directory(), attribute::form_is_unsigned(), file_and_directory::get_comp_dir(), file_and_directory::get_name(), quick_file_names::hash, objfile::intern(), file_and_directory::intern_comp_dir(), dwarf2_per_cu_data::is_debug_types, file_and_directory::is_unknown(), stmt_list_hash::line_sect_off, quick_file_names::num_file_names, dwarf2_per_objfile::objfile, dwarf2_per_bfd::obstack, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, dwarf2_per_bfd::quick_file_names_table, quick_file_names::real_names, and die_info::tag.
Referenced by dw2_get_file_names().
|
static |
Definition at line 2139 of file read.c.
References quick_file_names::comp_dir, quick_file_names::file_names, find_source_or_rewrite(), quick_file_names::num_file_names, dwarf2_per_bfd::obstack, dwarf2_per_objfile::per_bfd, and quick_file_names::real_names.
Referenced by dw_expand_symtabs_matching_file_matcher(), and dwarf2_base_index_functions::map_symbol_filenames().
|
static |
Definition at line 1784 of file read.c.
References dw2_do_instantiate_symtab(), dwarf2_per_objfile::get_symtab(), increment_reading_symtab(), process_cu_includes(), and dwarf2_per_objfile::symtab_set_p().
Referenced by dw2_expand_symtabs_matching_one(), dwarf2_base_index_functions::expand_all_symtabs(), cooked_index_functions::expand_matching_symbols(), cooked_index_functions::find_compunit_symtab_by_address(), dwarf2_base_index_functions::find_last_source_symtab(), and dwarf2_base_index_functions::find_pc_sect_compunit_symtab().
Definition at line 6845 of file read.c.
References dwarf2_string_attr(), dwarf2_cu::lang(), and language_rust.
Referenced by check_ada_pragma_import(), dwarf2_compute_name(), dwarf2_physname(), guess_full_die_structure_name(), new_symbol(), read_call_site_scope(), and read_func_scope().
|
static |
Definition at line 6829 of file read.c.
References dwarf2_attr().
Referenced by anonymous_struct_prefix(), and dwarf2_name().
void dw_expand_symtabs_matching_file_matcher | ( | dwarf2_per_objfile * | per_objfile, |
gdb::function_view< expand_symtabs_file_matcher_ftype > | file_matcher ) |
Definition at line 3054 of file read.c.
References dwarf2_per_bfd::all_units, basenames_may_differ, dw2_get_file_names(), dw2_get_real_path(), quick_file_names::file_names, file_and_directory::get_fullname(), file_and_directory::get_name(), quick_file_names::num_file_names, dwarf2_per_objfile::per_bfd, QUIT, dwarf2_per_objfile::symtab_set_p(), xcalloc(), and xfree().
Referenced by dwarf2_debug_names_index::expand_symtabs_matching(), dwarf2_gdb_index::expand_symtabs_matching(), and cooked_index_functions::expand_symtabs_matching().
|
static |
Definition at line 11469 of file read.c.
References complaint, attribute::constant_value(), dwarf2_attr(), dwarf2_cu::header, die_info::parent, producer_is_gxx_lt_4_6(), die_info::tag, value, and comp_unit_head::version.
Referenced by dwarf2_add_field(), dwarf2_add_member_fn(), and dwarf2_add_type_defn().
|
static |
Definition at line 11624 of file read.c.
References nextfield::accessibility, objfile::arch(), attribute::as_virtuality(), field_info::baseclasses, bits_per_byte, field::bitsize(), attribute::constant_value(), die_is_declaration(), die_type(), dwarf2_access_attribute(), dwarf2_attr(), dwarf2_flag_true_p(), dwarf2_name(), dwarf2_physname(), field_info::fields, follow_die_ref(), attribute::form_is_constant(), attribute::form_is_ref(), gdbarch_byte_order(), handle_member_location(), type::length(), field::loc_bitpos(), type::name(), new_symbol(), field_info::non_public_fields, dwarf2_per_objfile::objfile, nextfield::offset, dwarf2_cu::per_objfile, die_info::sect_off, field::set_bitsize(), field::set_is_artificial(), field::set_loc_bitpos(), field::set_loc_physname(), field::set_name(), field::set_type(), die_info::tag, field::type(), and nextfield::virtuality.
Referenced by handle_struct_member_die().
|
static |
Definition at line 12171 of file read.c.
References add_to_method_list(), comp_unit_head::addr_size, ALLOCATE_CPLUS_STRUCT_TYPE, attribute::as_block(), attribute::as_boolean(), attribute::as_virtuality(), type::code(), complaint, decode_locdesc(), attribute::defaulted(), fn_field::defaulted, die_containing_type(), dwarf2_access_attribute(), dwarf2_attr(), dwarf2_complex_location_expr_complaint(), dwarf2_full_name(), dwarf2_invalid_attrib_class_complaint(), dwarf2_is_constructor(), dwarf2_name(), dwarf2_physname(), fn_field::fcontext, type::field(), type::fields(), field_info::fnfieldlists, fnfieldlist::fnfields, attribute::form_is_block(), attribute::form_is_section_offset(), type::has_varargs(), dwarf2_cu::header, field::is_artificial(), fn_field::is_artificial, fn_field::is_constructor, fn_field::is_deleted, fn_field::is_private, fn_field::is_protected, dwarf2_cu::lang(), language_ada, language_cplus, fnfieldlist::name, type_allocator::new_type(), type::num_fields(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, fn_field::physname, read_type_die(), die_info::sect_off, sect_offset_str(), dwarf_block::size, smash_to_method_type(), type::target_type(), field::type(), fn_field::type, TYPE_CPLUS_DYNAMIC, fn_field::voffset, and VOFFSET_STATIC.
Referenced by handle_struct_member_die().
|
static |
Definition at line 11825 of file read.c.
References dwarf2_access_attribute(), dwarf2_name(), decl_field::is_private, decl_field::is_protected, decl_field::name, field_info::nested_types_list, read_type_die(), die_info::tag, decl_field::type, type_can_define_types(), and field_info::typedef_field_list.
Referenced by handle_struct_member_die().
|
static |
Definition at line 12055 of file read.c.
References add_variant_property(), type::alloc_fields(), ALLOCATE_CPLUS_STRUCT_TYPE, B_BYTES, B_TYPE, field_info::baseclasses, complaint, type::field(), field_info::fields, dwarf2_cu::lang(), language_ada, field_info::nfields(), field_info::non_public_fields, SET_TYPE_FIELD_PRIVATE, SET_TYPE_FIELD_PROTECTED, SET_TYPE_FIELD_VIRTUAL, TYPE_FIELD_IGNORE_BITS, TYPE_FIELD_PRIVATE_BITS, TYPE_FIELD_PROTECTED_BITS, TYPE_FIELD_VIRTUAL_BITS, TYPE_N_BASECLASSES, TYPE_ZALLOC, and field_info::variant_parts.
Referenced by process_structure_scope().
|
static |
Definition at line 12373 of file read.c.
References ALLOCATE_CPLUS_STRUCT_TYPE, fn_fieldlist::fn_fields, field_info::fnfieldlists, fnfieldlist::fnfields, dwarf2_cu::lang(), language_ada, fnfieldlist::name, TYPE_ALLOC, TYPE_FN_FIELDLIST, TYPE_FN_FIELDLIST_LENGTH, TYPE_FN_FIELDLIST_NAME, TYPE_FN_FIELDLISTS, TYPE_NFN_FIELDS, and TYPE_ZALLOC.
Referenced by process_structure_scope().
|
static |
Definition at line 17868 of file read.c.
References die_info::attrs, follow_die_ref(), name, attribute::name, and die_info::num_attrs.
Referenced by attr_to_dynamic_prop(), die_containing_type(), die_descriptive_type(), die_is_declaration(), die_needs_namespace(), die_specification(), die_type(), dw2_get_file_names_reader(), dw2_linkage_name_attr(), dwarf2_access_attribute(), dwarf2_add_field(), dwarf2_add_member_fn(), dwarf2_compute_name(), dwarf2_extension(), dwarf2_fetch_constant_bytes(), dwarf2_fetch_die_loc_sect_off(), dwarf2_find_base_address(), dwarf2_flag_true_p(), dwarf2_func_is_main_p(), dwarf2_get_pc_bounds(), dwarf2_name(), dwarf2_record_block_ranges(), dwarf2_string_attr(), finish_fixed_point_type(), get_alignment(), get_dwarf2_rational_constant(), handle_DW_AT_stmt_list(), handle_member_location(), handle_member_location(), handle_variant(), handle_variant_part(), has_zero_over_zero_small_attribute(), inherit_abstract_dies(), lookup_dwo_id(), new_symbol(), prepare_one_comp_unit(), process_imported_unit_die(), process_structure_scope(), prototyped_function_p(), quirk_ada_thick_pointer(), read_alias(), read_array_order(), read_array_type(), read_base_type(), read_call_site_scope(), read_common_block(), read_cutu_die_from_dwo(), read_decl_line(), read_enumeration_type(), read_file_scope(), read_func_scope(), read_import_statement(), read_namespace(), read_namespace_type(), read_set_type(), read_structure_type(), read_subrange_type(), read_subroutine_type(), read_tag_pointer_type(), read_tag_reference_type(), read_tag_string_type(), read_variable(), recognize_bound_expression(), rust_containing_type(), set_die_type(), dwarf2_cu::setup_type_unit_groups(), unnamed_template_tag_name(), update_enumeration_type_from_children(), and var_decl_name().
|
static |
Definition at line 3452 of file read.c.
References dwarf2_build_psymtabs_hard(), exception_print(), gdb_stderr, get_dwarf2_per_objfile(), dwarf2_per_bfd::index_table, and dwarf2_per_objfile::per_bfd.
Referenced by cooked_index_functions::read_partial_symbols().
|
static |
Definition at line 5091 of file read.c.
References build_type_psymtabs(), create_all_units(), create_quick_file_names_table(), dwarf_read_debug_printf, exception_print(), gdb_stderr, cooked_index_storage::get_addrmap(), dwarf2_per_cu_data::length(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, objfile::per_bfd, and read_addrmap_from_aranges().
Referenced by dwarf2_build_psymtabs().
|
static |
Definition at line 20272 of file read.c.
References c_canonicalize_name(), cp_canonicalize_string(), objfile::intern(), dwarf2_cu::lang(), language_c, language_cplus, and name.
Referenced by dwarf2_compute_name(), and dwarf2_name().
|
static |
Definition at line 1185 of file read.c.
References complaint.
Referenced by dwarf2_add_member_fn(), handle_member_location(), handle_member_location(), and read_common_block().
|
static |
Definition at line 6878 of file read.c.
References value::allocate(), die_info::building_fullname, c_type_print_args(), die_info::child, type::code(), dwarf2_cu::comp_unit_obstack, complaint, value::contents_writeable(), dwarf2_locexpr_baton::data, determine_prefix(), die_needs_namespace(), die_type(), dw2_linkage_name(), dwarf2_attr(), dwarf2_canonicalize_name(), dwarf2_const_value_attr(), dwarf2_evaluate_loc_desc(), dwarf2_name(), string_file::empty(), type::field(), get_formatted_print_options(), type::has_no_signedness(), objfile::intern(), field::is_artificial(), dwarf2_cu::lang(), language_ada, language_cplus, language_d, dwarf2_cu::language_defn, language_fortran, language_rust, type::length(), name, type::num_fields(), dwarf2_per_objfile::objfile, dwarf2_locexpr_baton::per_cu, dwarf2_cu::per_objfile, dwarf2_locexpr_baton::per_objfile, prefix, language_defn::print_type(), language_defn::printchar(), ui_file::puts(), read_type_die(), release_value(), die_info::sibling, dwarf2_locexpr_baton::size, string_file::string(), die_info::tag, type::target_type(), field::type(), type, TYPE_CONST, type_print_raw_options, typename_concat(), value, value_from_longest(), and value_print().
Referenced by dwarf2_full_name(), and dwarf2_physname().
|
static |
Definition at line 19586 of file read.c.
References dwarf2_const_value_attr(), dwarf2_locexpr_index, LOC_CONST, LOC_CONST_BYTES, dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_objfile, general_symbol_info::print_name(), symbol::set_aclass_index(), symbol::set_value_bytes(), symbol::set_value_longest(), SYMBOL_LOCATION_BATON, symbol::type(), and value.
Referenced by new_symbol().
|
static |
Definition at line 19478 of file read.c.
References comp_unit_head::addr_size, attribute::as_address(), attribute::as_block(), attribute::as_signed(), attribute::as_string(), attribute::as_unsigned(), complaint, dwarf_block::data, dwarf2_const_value_data(), dwarf2_const_value_length_mismatch_complaint(), dwarf_form_name(), attribute::form, dwarf2_cu::header, type::length(), name, objfile::obfd, dwarf2_per_objfile::objfile, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, dwarf_block::size, and store_unsigned_integer().
Referenced by dwarf2_compute_name(), dwarf2_const_value(), and update_enumeration_type_from_children().
|
static |
Definition at line 19446 of file read.c.
References bits, attribute::constant_value(), objfile::obfd, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, and store_unsigned_integer().
Referenced by dwarf2_const_value_attr(), and dwarf2_fetch_constant_bytes().
|
static |
Definition at line 1191 of file read.c.
References complaint.
Referenced by dwarf2_const_value_attr().
|
static |
|
static |
Definition at line 1172 of file read.c.
References complaint.
Referenced by lnp_state_machine::handle_set_file(), and lnp_state_machine::record_line().
Definition at line 17924 of file read.c.
References dwarf2_string_attr().
Referenced by cutu_reader::cutu_reader(), and lookup_dwo_unit().
|
static |
Definition at line 20410 of file read.c.
References dwarf2_attr(), and follow_die_ref().
Referenced by namespace_name(), and read_namespace_type().
const gdb_byte * dwarf2_fetch_constant_bytes | ( | sect_offset | sect_off, |
dwarf2_per_cu_data * | per_cu, | ||
dwarf2_per_objfile * | per_objfile, | ||
obstack * | obstack, | ||
LONGEST * | len ) |
Definition at line 20699 of file read.c.
References comp_unit_head::addr_size, attribute::as_address(), attribute::as_block(), attribute::as_signed(), attribute::as_string(), attribute::as_unsigned(), complaint, die_type(), dwarf2_attr(), dwarf2_const_value_data(), dwarf_form_name(), follow_die_offset(), attribute::form, dwarf2_per_objfile::get_cu(), dwarf2_cu::header, dwarf2_per_cu_data::is_dwz, load_cu(), objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), sect_offset_str(), store_unsigned_integer(), type, value, and write_constant_as_bytes().
Referenced by fetch_const_value_from_synthetic_pointer().
struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_cu_off | ( | cu_offset | offset_in_cu, |
dwarf2_per_cu_data * | per_cu, | ||
dwarf2_per_objfile * | per_objfile, | ||
gdb::function_view< CORE_ADDR()> | get_frame_pc ) |
Definition at line 20666 of file read.c.
References dwarf2_fetch_die_loc_sect_off(), get_frame_pc(), dwarf2_locexpr_baton::per_cu, dwarf2_locexpr_baton::per_objfile, and dwarf2_per_cu_data::sect_off.
Referenced by dwarf2_compile_expr_to_ax(), dwarf2_get_symbol_read_needs(), and dwarf_expr_context::dwarf_call().
struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_sect_off | ( | sect_offset | sect_off, |
dwarf2_per_cu_data * | per_cu, | ||
dwarf2_per_objfile * | per_objfile, | ||
gdb::function_view< CORE_ADDR()> | get_frame_pc, | ||
bool | resolve_abstract_p ) |
Definition at line 20563 of file read.c.
References attribute::as_block(), die_info::attr(), dwarf2_locexpr_baton::data, dwarf2_attr(), dwarf2_find_location_expression(), fill_in_loclist_baton(), follow_die_offset(), attribute::form_is_block(), attribute::form_is_section_offset(), get_frame_pc(), get_scope_pc_bounds(), load_cu(), objfile_name(), die_info::parent, dwarf2_cu::per_cu, dwarf2_locexpr_baton::per_cu, dwarf2_locexpr_baton::per_objfile, die_info::sect_off, sect_offset_str(), dwarf2_locexpr_baton::size, size, and die_info::tag.
Referenced by dwarf2_fetch_die_loc_cu_off(), dwarf2_get_symbol_read_needs(), and indirect_synthetic_pointer().
struct type * dwarf2_fetch_die_type_sect_off | ( | sect_offset | sect_off, |
dwarf2_per_cu_data * | per_cu, | ||
dwarf2_per_objfile * | per_objfile, | ||
const char ** | var_name ) |
Definition at line 20837 of file read.c.
References die_type(), follow_die_offset(), dwarf2_per_objfile::get_cu(), dwarf2_per_cu_data::is_dwz, load_cu(), die_info::sect_off, and var_decl_name().
Referenced by dwarf2_get_symbol_read_needs(), indirect_synthetic_pointer(), and sect_variable_value().
Definition at line 3476 of file read.c.
References attribute::as_address(), dwarf2_cu::base_address, and dwarf2_attr().
Referenced by cooked_indexer::check_bounds(), load_cu(), and process_full_comp_unit().
|
static |
Definition at line 21600 of file read.c.
References dwarf2_per_cu_data::is_dwz, dwarf2_per_cu_data::length(), and dwarf2_per_cu_data::sect_off.
|
static |
Definition at line 21630 of file read.c.
References dwarf2_per_bfd::all_units, dwarf2_find_containing_comp_unit(), dwarf2_per_cu_data::is_dwz, dwarf2_per_cu_data::length(), dwarf2_per_bfd::obfd, dwarf2_per_cu_data::per_bfd, dwarf2_per_cu_data::sect_off, and sect_offset_str().
Referenced by dwarf2_find_containing_comp_unit(), cooked_indexer::ensure_cu_exists(), follow_die_offset(), lookup_die_type(), and process_imported_unit_die().
|
static |
Definition at line 17937 of file read.c.
References attribute::as_boolean(), dwarf2_attr(), and name.
Referenced by die_is_declaration(), dwarf2_add_field(), dwarf2_func_is_main_p(), read_call_site_scope(), and read_enumeration_type().
|
static |
Definition at line 7110 of file read.c.
References dwarf2_compute_name(), and name.
Referenced by dwarf2_add_member_fn(), new_symbol(), read_enumeration_type(), read_structure_type(), and read_typedef().
Definition at line 10035 of file read.c.
References attribute::constant_value(), dwarf2_attr(), and dwarf2_flag_true_p().
Referenced by read_func_scope().
struct type * dwarf2_get_die_type | ( | cu_offset | die_offset, |
dwarf2_per_cu_data * | per_cu, | ||
dwarf2_per_objfile * | per_objfile ) |
Definition at line 20863 of file read.c.
References get_die_type_at_offset(), and dwarf2_per_cu_data::sect_off.
Referenced by disassemble_dwarf_expression(), and dwarf_expr_context::get_base_type().
|
static |
Definition at line 11160 of file read.c.
References attribute::as_address(), attribute::as_unsigned(), dwarf2_attr(), dwarf2_ranges_read(), attribute::form_is_constant(), attribute::form_is_unsigned(), dwarf2_cu::gnu_ranges_base, dwarf2_per_bfd::has_section_at_zero, dwarf2_cu::header, PC_BOUNDS_HIGH_LOW, PC_BOUNDS_INVALID, PC_BOUNDS_NOT_PRESENT, PC_BOUNDS_RANGES, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, die_info::tag, and comp_unit_head::version.
Referenced by cooked_indexer::check_bounds(), dwarf2_get_subprogram_pc_bounds(), get_scope_pc_bounds(), read_call_site_scope(), read_func_scope(), and read_lexical_block_scope().
void dwarf2_get_section_info | ( | struct objfile * | objfile, |
enum dwarf2_section_enum | sect, | ||
asection ** | sectp, | ||
const gdb_byte ** | bufp, | ||
bfd_size_type * | sizep ) |
Definition at line 1539 of file read.c.
References DWARF2_DEBUG_FRAME, DWARF2_EH_FRAME, dwarf2_per_bfd::eh_frame, dwarf2_per_bfd::frame, get_dwarf2_per_objfile(), and dwarf2_per_objfile::per_bfd.
Referenced by dwarf2_build_frame_info().
|
static |
Definition at line 11243 of file read.c.
References die_info::child, dwarf2_get_pc_bounds(), dwarf2_get_subprogram_pc_bounds(), dwarf2_cu::lang(), language_ada, PC_BOUNDS_RANGES, die_info::sibling, and die_info::tag.
Referenced by dwarf2_get_subprogram_pc_bounds(), and get_scope_pc_bounds().
bool dwarf2_has_info | ( | struct objfile * | objfile, |
const struct dwarf2_debug_sections * | names, | ||
bool | can_copy ) |
Definition at line 1360 of file read.c.
References dwarf2_per_bfd::abbrev, dwarf2_objfile_data_key, dwarf2_per_bfd_bfd_data_key, dwarf2_per_bfd_objfile_data_key, objfile::flags, gdb_bfd_requires_relocations(), registry< T >::get(), get_dwarf2_per_objfile(), dwarf2_per_bfd::info, dwarf2_section_info::is_virtual, objfile::obfd, OBJF_READNEVER, OBJF_READNOW, dwarf2_per_objfile::per_bfd, dwarf2_section_info::s, dwarf2_section_info::section, and registry< T >::set().
Referenced by coff_symfile_read(), elf_symfile_read_dwarf2(), macho_symfile_read(), cooked_index_functions::read_partial_symbols(), and xcoff_initial_scan().
|
static |
Definition at line 15173 of file read.c.
References objfile::arch(), bits, builtin_type::builtin_double, builtin_f_type(), builtin_type::builtin_float, builtin_type::builtin_long_double, builtin_f_type::builtin_real, builtin_f_type::builtin_real_s16, builtin_f_type::builtin_real_s8, builtin_type(), dwarf2_init_float_type(), dwarf2_cu::lang(), language_fortran, type::length(), name, type::name(), dwarf2_per_objfile::objfile, and dwarf2_cu::per_objfile.
Referenced by read_base_type().
|
static |
Definition at line 15095 of file read.c.
References objfile::arch(), bits, gdbarch_floatformat_for_type(), init_float_type(), dwarf2_cu::lang(), name, type_allocator::new_type(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, and type.
Referenced by dwarf2_init_complex_target_type(), and read_base_type().
|
static |
Definition at line 15116 of file read.c.
References bits, builtin_type(), builtin_type::builtin_void, init_integer_type(), dwarf2_cu::lang(), name, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, producer_is_icc(), and type.
Referenced by read_base_type().
void dwarf2_initialize_objfile | ( | struct objfile * | objfile | ) |
Definition at line 3383 of file read.c.
References dwarf2_per_bfd::all_units, create_all_units(), create_quick_file_names_table(), dwarf2_read_debug_names(), dwarf2_read_gdb_index(), dwarf_read_debug_printf, objfile::flags, get_dwarf2_per_objfile(), get_gdb_index_contents_from_cache(), get_gdb_index_contents_from_cache_dwz(), global_index_cache, index_cache::hit(), dwarf2_per_bfd::index_table, make_cooked_index_funcs(), index_cache::miss(), OBJF_READNOW, dwarf2_per_cu_data::per_bfd, dwarf2_per_objfile::per_bfd, objfile::qf, and dwarf2_per_bfd::quick_file_names_table.
Referenced by coff_symfile_read(), elf_symfile_read_dwarf2(), macho_symfile_read(), and xcoff_initial_scan().
|
static |
Definition at line 1199 of file read.c.
References complaint.
Referenced by attr_to_dynamic_prop(), dwarf2_add_member_fn(), dwarf2_symbol_mark_computed(), and read_common_block().
Definition at line 12144 of file read.c.
References dwarf2_name(), die_info::parent, and die_info::tag.
Referenced by dwarf2_add_member_fn().
|
static |
Definition at line 9344 of file read.c.
References dwop_section_names::cu_index, dwop_section_names, dwp_file::elf_sections, dwarf2_section_names::matches(), dwarf2_section_info::read(), dwarf2_section_info::s, dwarf2_section_info::section, dwarf2_section_info::size, dwop_section_names::str_dwo, and dwop_section_names::tu_index.
Referenced by open_and_init_dwp_file().
|
static |
Definition at line 9248 of file read.c.
References dwo_sections::abbrev, dwop_section_names::abbrev_dwo, dwop_section_names, dwo_sections::info, dwop_section_names::info_dwo, dwo_sections::line, dwop_section_names::line_dwo, dwo_sections::loc, dwop_section_names::loc_dwo, dwo_sections::loclists, dwop_section_names::loclists_dwo, dwo_sections::macinfo, dwop_section_names::macinfo_dwo, dwo_sections::macro, dwop_section_names::macro_dwo, dwarf2_section_names::matches(), dwarf2_section_info::read(), dwo_sections::rnglists, dwop_section_names::rnglists_dwo, dwarf2_section_info::s, dwarf2_section_info::section, dwarf2_section_info::size, dwo_sections::str, dwop_section_names::str_dwo, dwo_sections::str_offsets, dwop_section_names::str_offsets_dwo, dwo_sections::types, and dwop_section_names::types_dwo.
Referenced by open_and_init_dwo_file().
|
static |
Definition at line 9378 of file read.c.
References dwop_section_names::abbrev_dwo, dwop_section_names, dwp_file::elf_sections, dwop_section_names::info_dwo, dwop_section_names::line_dwo, dwop_section_names::loc_dwo, dwop_section_names::macinfo_dwo, dwop_section_names::macro_dwo, dwarf2_section_names::matches(), dwarf2_section_info::read(), dwarf2_section_info::s, dwarf2_section_info::section, dwarf2_section_info::size, dwop_section_names::str_offsets_dwo, and dwop_section_names::types_dwo.
Referenced by open_and_init_dwp_file().
|
static |
Definition at line 9423 of file read.c.
References dwop_section_names::abbrev_dwo, dwop_section_names, dwp_file::elf_sections, dwop_section_names::info_dwo, dwop_section_names::line_dwo, dwop_section_names::loclists_dwo, dwop_section_names::macro_dwo, dwarf2_section_names::matches(), dwarf2_section_info::read(), dwop_section_names::rnglists_dwo, dwarf2_section_info::s, dwarf2_section_info::section, dwarf2_section_info::size, and dwop_section_names::str_offsets_dwo.
Referenced by open_and_init_dwp_file().
Definition at line 20302 of file read.c.
References attribute::as_string(), attribute::canonical_string_p(), CP_ANONYMOUS_NAMESPACE_STR, dw2_linkage_name_attr(), dwarf2_attr(), dwarf2_canonicalize_name(), gdb_demangle(), objfile::intern(), nullptr, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, attribute::set_string_canonical(), die_info::tag, and unnamed_template_tag_name().
Referenced by attr_to_dynamic_prop(), check_ada_pragma_import(), determine_prefix(), dwarf2_add_field(), dwarf2_add_member_fn(), dwarf2_add_type_defn(), dwarf2_compute_name(), dwarf2_is_constructor(), guess_full_die_structure_name(), new_symbol(), process_enumeration_scope(), read_array_type(), read_base_type(), read_func_scope(), read_import_statement(), read_module_type(), read_structure_type(), read_subrange_type(), read_subroutine_type(), read_unspecified_type(), and update_enumeration_type_from_children().
|
static |
Definition at line 7123 of file read.c.
References check_physname, complaint, die_needs_namespace(), dw2_linkage_name(), dwarf2_compute_name(), gdb_demangle(), objfile::intern(), dwarf2_cu::lang(), dwarf2_cu::language_defn, language_rust, name, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, die_info::sect_off, sect_offset_str(), and language_defn::store_sym_names_in_linkage_form_p().
Referenced by compute_delayed_physnames(), dwarf2_add_field(), dwarf2_add_member_fn(), new_symbol(), read_call_site_scope(), and update_enumeration_type_from_children().
|
static |
Definition at line 10983 of file read.c.
References comp_unit_head::addr_size, dwarf2_cu::base_address, dwarf2_section_info::buffer, complaint, dummy, dwarf2_rnglists_process(), dwarf2_per_bfd::has_section_at_zero, dwarf2_cu::header, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwarf2_per_bfd::ranges, dwarf2_section_info::read(), comp_unit_head::read_address(), dwarf2_section_info::size, and comp_unit_head::version.
Referenced by dwarf2_ranges_read(), dwarf2_ranges_read_low_addrs(), and dwarf2_record_block_ranges().
|
static |
Definition at line 11084 of file read.c.
References dwarf2_per_objfile::adjust(), dwarf2_ranges_process(), dwarf2_cu::per_objfile, and addrmap::set_empty().
Referenced by dwarf2_get_pc_bounds(), and cooked_indexer::scan_attributes().
|
static |
Definition at line 11144 of file read.c.
References dwarf2_ranges_process().
Referenced by read_call_site_scope().
unrelocated_addr dwarf2_read_addr_index | ( | dwarf2_per_cu_data * | per_cu, |
dwarf2_per_objfile * | per_objfile, | ||
unsigned int | addr_index ) |
Definition at line 17615 of file read.c.
References dwarf2_cu::addr_base, comp_unit_head::addr_size, die_reader_specs::cu, dwarf2_per_objfile::get_cu(), dwarf2_cu::header, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and read_addr_index_1().
Referenced by decode_debug_loc_dwo_addresses(), decode_debug_loclists_addresses(), disassemble_dwarf_expression(), dwarf_expr_context::execute_stack_op(), and locexpr_describe_location_piece().
|
static |
Definition at line 11341 of file read.c.
References attribute::as_address(), attribute::as_unsigned(), dwarf2_attr(), dwarf2_ranges_process(), attribute::form_is_constant(), attribute::form_is_unsigned(), dwarf2_cu::get_builder(), dwarf2_cu::gnu_ranges_base, dwarf2_cu::header, make_blockranges(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, buildsym_compunit::record_block_range(), dwarf2_per_objfile::relocate(), block::set_ranges(), die_info::tag, and comp_unit_head::version.
Referenced by process_full_comp_unit(), read_func_scope(), and read_lexical_block_scope().
|
static |
Definition at line 10780 of file read.c.
References comp_unit_head::addr_size, dwarf2_cu::base_address, dwarf2_section_info::buffer, complaint, cu_debug_rnglists_section(), dwarf2_per_bfd::has_section_at_zero, dwarf2_cu::header, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwarf2_section_info::read(), read_addr_index(), comp_unit_head::read_address(), read_unsigned_leb128(), and dwarf2_section_info::size.
Referenced by dwarf2_ranges_process().
|
static |
Definition at line 18827 of file read.c.
References file_entry::d_index, compunit_symtab::dirname(), line_header::file_file_name(), dwarf2_cu::get_builder(), line_header::include_dir_at(), file_entry::name, and buildsym_compunit::start_subfile().
Referenced by dwarf_decode_lines(), dwarf_decode_lines_1(), lnp_state_machine::handle_set_file(), and dwarf2_cu::setup_type_unit_groups().
|
static |
Definition at line 17901 of file read.c.
References attribute::as_string(), complaint, dwarf2_attr(), dwarf_attr_name(), name, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, die_info::sect_off, sect_offset_str(), and attribute::str.
Referenced by anonymous_struct_prefix(), dw2_linkage_name(), dwarf2_dwo_name(), find_file_and_directory(), lookup_dwo_unit(), namespace_name(), and prepare_one_comp_unit().
|
static |
Definition at line 21483 of file read.c.
References attribute::as_block(), attribute::as_unsigned(), dwarf2_cu::base_address, complaint, cu_debug_loc_section(), dwarf2_locexpr_baton::data, dwarf2_invalid_attrib_class_complaint(), dwarf2_locexpr_block_index, dwarf2_locexpr_index, dwarf2_loclist_block_index, dwarf2_loclist_index, fill_in_loclist_baton(), attribute::form_is_block(), attribute::form_is_section_offset(), general_symbol_info::natural_name(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_cu, dwarf2_locexpr_baton::per_cu, dwarf2_cu::per_objfile, dwarf2_locexpr_baton::per_objfile, dwarf2_section_info::section, symbol::set_aclass_index(), dwarf2_locexpr_baton::size, and SYMBOL_LOCATION_BATON.
Referenced by read_func_scope(), and var_decode_location().
|
static |
Definition at line 21328 of file read.c.
References dwarf2_cu::comp_unit_obstack.
Referenced by read_attribute_value().
|
static |
Definition at line 18014 of file read.c.
References complaint, dwarf_decode_line_header(), dwarf2_cu::dwo_unit, get_debug_line_section(), dwarf2_cu::header, dwarf2_per_cu_data::is_debug_types, dwarf2_per_cu_data::is_dwz, dwarf2_per_objfile::objfile, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and dwarf2_section_info::section.
Referenced by dw2_get_file_names_reader(), dwarf_decode_line_header(), and handle_DW_AT_stmt_list().
|
static |
Definition at line 18778 of file read.c.
References allocate_symtab(), dwarf2_start_subfile(), dwarf_decode_lines_1(), line_header::file_names(), dwarf2_cu::get_builder(), buildsym_compunit::get_compunit_symtab(), buildsym_compunit::get_current_subfile(), subfile::name, subfile::name_for_id, and subfile::symtab.
Referenced by handle_DW_AT_stmt_list().
|
static |
Definition at line 18553 of file read.c.
References line_header::add_file_name(), objfile::arch(), lnp_state_machine::check_line_address(), complaint, lnp_state_machine::current_file(), dwarf2_debug_line_missing_end_sequence_complaint(), dwarf2_start_subfile(), lnp_state_machine::handle_advance_line(), lnp_state_machine::handle_advance_pc(), lnp_state_machine::handle_const_add_pc(), lnp_state_machine::handle_copy(), lnp_state_machine::handle_end_sequence(), lnp_state_machine::handle_fixed_advance_pc(), lnp_state_machine::handle_negate_stmt(), lnp_state_machine::handle_set_address(), lnp_state_machine::handle_set_discriminator(), lnp_state_machine::handle_set_file(), lnp_state_machine::handle_set_prologue_end(), lnp_state_machine::handle_special_opcode(), dwarf2_cu::header, objfile::obfd, dwarf2_per_objfile::objfile, line_header::opcode_base, dwarf2_cu::per_objfile, read_1_byte(), read_2_bytes(), comp_unit_head::read_address(), read_direct_string(), read_signed_leb128(), read_unsigned_leb128(), lnp_state_machine::record_line(), line_header::standard_opcode_lengths, line_header::statement_program_end, and line_header::statement_program_start.
Referenced by dwarf_decode_lines().
|
static |
Definition at line 21341 of file read.c.
References comp_unit_head::addr_size, complaint, dwarf_decode_macros(), dwo_unit::dwo_file, dwarf2_cu::dwo_unit, dwarf2_cu::get_builder(), dwarf2_cu::header, dwarf2_cu::line_header, dwarf2_per_bfd::macinfo, dwarf2_per_bfd::macro, dwarf2_per_objfile::objfile, comp_unit_head::offset_size, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwarf2_section_info::read(), dwarf2_section_info::section, dwarf2_per_bfd::str, dwarf2_per_bfd::str_offsets, and dwarf2_cu::str_offsets_base.
Referenced by dwarf_decode_macros(), and read_file_scope().
|
static |
Definition at line 18403 of file read.c.
References dwarf_line_debug, dwarf_record_line_1(), gdb_printf(), gdb_stdlog, LEF_IS_STMT, subfile::name, and paddress().
Referenced by lnp_state_machine::record_line().
|
static |
Definition at line 17800 of file read.c.
References language_ada, language_asm, language_c, language_cplus, language_d, language_fortran, language_go, language_m2, language_minimal, language_objc, language_opencl, language_pascal, and language_rust.
Referenced by prepare_one_comp_unit().
|
static |
Definition at line 18376 of file read.c.
References dwarf_line_debug, flags, gdb_printf(), gdb_stdlog, gdbarch_addr_bits_remove(), dwarf2_cu::get_builder(), subfile::name, paddress(), and buildsym_compunit::record_line().
Referenced by dwarf_finish_line(), and lnp_state_machine::record_line().
|
static |
Definition at line 18355 of file read.c.
References dwarf2_cu::get_builder(), and buildsym_compunit::get_current_subfile().
Referenced by lnp_state_machine::record_line().
|
static |
Definition at line 7889 of file read.c.
References dwo_file::comp_dir, and dwo_file::dwo_name.
Referenced by allocate_dwo_file_hash_table().
|
static |
Definition at line 7944 of file read.c.
References dwo_unit::signature.
Referenced by allocate_dwo_unit_table().
|
static |
Definition at line 9474 of file read.c.
References dwo_unit::signature.
Referenced by allocate_dwp_loaded_cutus_table().
|
static |
Definition at line 1699 of file read.c.
References eq_stmt_list_entry(), and quick_file_names::hash.
Referenced by create_quick_file_names_table().
|
static |
Definition at line 3550 of file read.c.
References signatured_type::signature.
Referenced by allocate_signatured_type_table().
|
static |
Definition at line 1673 of file read.c.
References dwo_unit::dwo_file, stmt_list_hash::dwo_unit, and stmt_list_hash::line_sect_off.
Referenced by eq_file_name_entry(), and eq_type_unit_group().
|
static |
Definition at line 4506 of file read.c.
References eq_stmt_list_entry().
Referenced by allocate_type_unit_groups_table().
|
static |
Definition at line 21459 of file read.c.
References attribute::as_unsigned(), dwarf2_cu::base_address, dwarf2_loclist_baton::base_address, cu_debug_loc_section(), dwarf2_loclist_baton::data, dwarf2_cu::dwo_unit, dwarf2_loclist_baton::from_dwo, dwarf2_per_objfile::objfile, dwarf2_cu::per_cu, dwarf2_loclist_baton::per_cu, dwarf2_cu::per_objfile, dwarf2_loclist_baton::per_objfile, dwarf2_section_info::section, and dwarf2_loclist_baton::size.
Referenced by attr_to_dynamic_prop(), dwarf2_fetch_die_loc_sect_off(), and dwarf2_symbol_mark_computed().
|
static |
Definition at line 3718 of file read.c.
References signatured_type::dwo_unit, dwarf2_per_objfile::get_cu(), dwo_unit::length, dwarf2_per_cu_data::per_bfd, dwarf2_per_objfile::per_bfd, dwarf2_per_cu_data::queued, dwarf2_per_cu_data::reading_dwo_directly, dwo_unit::sect_off, dwarf2_per_cu_data::sect_off, dwo_unit::section, dwarf2_per_cu_data::section, dwarf2_per_cu_data::set_length(), dwo_unit::signature, signatured_type::signature, dwarf2_per_objfile::symtab_set_p(), signatured_type::type_offset_in_section, dwo_unit::type_offset_in_tu, signatured_type::type_offset_in_tu, and signatured_type::type_unit_group.
Referenced by lookup_dwo_signatured_type(), lookup_dwp_signatured_type(), and process_skeletonless_type_unit().
void finalize_all_units | ( | dwarf2_per_bfd * | per_bfd | ) |
Definition at line 5271 of file read.c.
References objfile::per_bfd.
Referenced by create_all_units(), dwarf2_read_debug_names(), and dwarf2_read_gdb_index().
|
static |
Definition at line 7519 of file read.c.
References dwarf2_string_attr(), dwarf2_per_cu_data::fnd, file_and_directory::get_comp_dir(), file_and_directory::get_name(), ldirname(), dwarf2_cu::per_cu, producer_is_gcc_lt_4_3(), file_and_directory::set_comp_dir(), and file_and_directory::set_name().
Referenced by dw2_get_file_names_reader(), cooked_indexer::make_index(), and read_file_scope().
|
static |
Definition at line 14984 of file read.c.
References ada_get_gnat_encoded_ratio(), type::code(), complaint, attribute::constant_value(), dwarf2_attr(), dwarf_attr_name(), dwarf_tag_name(), type::fixed_point_info(), follow_die_ref(), get_dwarf2_unsigned_rational_constant(), attribute::name, gdb_mpz::pow(), fixed_point_type_info::scaling_factor, die_info::sect_off, sect_offset_str(), die_info::tag, TYPE_SPECIFIC_FIELD, and TYPE_SPECIFIC_FIXED_POINT.
Referenced by read_base_type().
|
static |
Definition at line 5855 of file read.c.
References symbol::aclass(), add_symbol_to_list(), complaint, general_symbol_info::compute_and_set_names(), dwarf2_cu::get_builder(), buildsym_compunit::get_global_symbols(), go_symbol_package_name(), objfile::intern(), dwarf2_cu::lang(), general_symbol_info::language(), language_go, LOC_BLOCK, LOC_TYPEDEF, type_allocator::new_type(), pending::next, pending::nsyms, dwarf2_per_objfile::objfile, objfile_name(), objfile::objfile_obstack, objfile::per_bfd, dwarf2_cu::per_objfile, symbol::set_aclass_index(), symbol::set_domain(), general_symbol_info::set_language(), symbol::set_type(), STRUCT_DOMAIN, pending::symbol, symbol::symtab, and symtab_to_filename_for_display().
Referenced by process_full_comp_unit(), and process_full_type_unit().
|
static |
Definition at line 20463 of file read.c.
References dwarf2_cu::die_hash, dwarf2_cu::dies, dwarf2_find_containing_comp_unit(), dwarf_read_debug_printf_v, dwarf2_per_objfile::get_cu(), dwarf2_cu::header, dwarf2_per_cu_data::is_debug_types, dwarf2_per_cu_data::is_dwz, dwarf2_cu::lang(), language_minimal, load_full_comp_unit(), maybe_queue_comp_unit(), comp_unit_head::offset_in_cu_p(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, die_info::sect_off, dwarf2_per_cu_data::sect_off, and sect_offset_str().
Referenced by dwarf2_fetch_constant_bytes(), dwarf2_fetch_die_loc_sect_off(), dwarf2_fetch_die_type_sect_off(), and follow_die_ref().
|
static |
Definition at line 20534 of file read.c.
References die_info::attr(), follow_die_offset(), attribute::form, attribute::get_ref_die_offset(), dwarf2_per_cu_data::is_dwz, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, die_info::sect_off, and sect_offset_str().
Referenced by attr_to_dynamic_prop(), die_specification(), dwarf2_add_field(), dwarf2_attr(), dwarf2_extension(), finish_fixed_point_type(), follow_die_ref_or_sig(), get_DW_AT_signature_type(), handle_variant_part(), has_zero_over_zero_small_attribute(), inherit_abstract_dies(), lookup_die_type(), read_alias(), read_call_site_scope(), read_subroutine_type(), read_variable(), and rust_containing_type().
|
static |
Definition at line 20438 of file read.c.
References die_info::attr(), die_info::error_dump(), follow_die_ref(), follow_die_sig(), attribute::form, attribute::form_is_ref(), and objfile_name().
Referenced by read_import_statement().
|
static |
Definition at line 20930 of file read.c.
References attribute::as_signature(), die_info::attr(), die_info::error_dump(), follow_die_sig_1(), attribute::form, lookup_signatured_type(), objfile_name(), die_info::sect_off, and sect_offset_str().
Referenced by follow_die_ref_or_sig().
|
static |
Definition at line 20877 of file read.c.
References dwarf2_cu::die_hash, dwarf2_per_objfile::get_cu(), dwarf2_per_bfd::index_table, language_minimal, maybe_queue_comp_unit(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, read_signatured_type(), die_info::sect_off, and signatured_type::type_offset_in_section.
Referenced by follow_die_sig(), and get_signatured_type().
|
static |
Definition at line 3497 of file read.c.
References dwarf2_per_bfd::abbrev, dwarf2_get_dwz_file(), dwarf2_per_cu_data::is_dwz, and dwarf2_per_cu_data::per_bfd.
Referenced by cutu_reader::cutu_reader(), and cutu_reader::cutu_reader().
Definition at line 12549 of file read.c.
References complaint, attribute::constant_value(), dwarf2_attr(), attribute::form_is_constant(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, die_info::sect_off, and sect_offset_str().
Referenced by maybe_set_alignment(), and read_tag_pointer_type().
|
static |
Definition at line 17982 of file read.c.
References dwarf2_get_dwz_file(), dwo_unit::dwo_file, dwarf2_cu::dwo_unit, dwarf2_per_cu_data::is_debug_types, dwarf2_per_cu_data::is_dwz, dwarf2_per_bfd::line, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and dwarf2_section_info::section.
Referenced by lnp_state_machine::check_line_address(), and dwarf_decode_line_header().
Definition at line 22029 of file read.c.
References get_die_type_at_offset(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and die_info::sect_off.
Referenced by process_enumeration_scope(), process_structure_scope(), read_array_type(), read_call_site_scope(), read_set_type(), read_structure_type(), read_subrange_type(), read_subroutine_type(), read_tag_atomic_type(), read_tag_const_type(), read_tag_pointer_type(), read_tag_ptr_to_member_type(), read_tag_reference_type(), read_tag_restrict_type(), read_tag_volatile_type(), and read_type_die().
|
static |
Definition at line 22006 of file read.c.
References dwarf2_per_objfile::die_type_hash, dwarf2_per_cu_offset_and_type::per_cu, dwarf2_per_cu_offset_and_type::sect_off, and dwarf2_per_cu_offset_and_type::type.
Referenced by dwarf2_get_die_type(), get_die_type(), lookup_die_type(), and read_alias().
|
static |
Definition at line 21028 of file read.c.
References attribute::as_signature(), die_info::attr(), build_error_marker_type(), complaint, dwarf_form_name(), follow_die_ref(), attribute::form, attribute::form_is_ref(), get_signatured_type(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, read_type_die(), die_info::sect_off, and sect_offset_str().
Referenced by read_enumeration_type(), and read_structure_type().
dwarf2_per_objfile * get_dwarf2_per_objfile | ( | struct objfile * | objfile | ) |
Definition at line 165 of file read.c.
References dwarf2_objfile_data_key, and registry< T >::get().
Referenced by dwarf2_gdb_index::dump(), cooked_index_functions::dump(), dwarf2_build_psymtabs(), dwarf2_frame_find_fde(), dwarf2_get_section_info(), dwarf2_has_info(), dwarf2_initialize_objfile(), dwarf2_base_index_functions::expand_all_symtabs(), dwarf2_debug_names_index::expand_matching_symbols(), dwarf2_gdb_index::expand_matching_symbols(), cooked_index_functions::expand_matching_symbols(), dwarf2_debug_names_index::expand_symtabs_matching(), dwarf2_gdb_index::expand_symtabs_matching(), cooked_index_functions::expand_symtabs_matching(), cooked_index_functions::find_compunit_symtab_by_address(), dwarf2_base_index_functions::find_last_source_symtab(), dwarf2_base_index_functions::find_pc_sect_compunit_symtab(), dwarf2_base_index_functions::forget_cached_source_info(), dwarf2_base_index_functions::has_unexpanded_symtabs(), cooked_index_functions::lookup_global_symbol_language(), dwarf2_base_index_functions::map_symbol_filenames(), dwarf2_base_index_functions::print_stats(), and save_gdb_index_command().
|
static |
Definition at line 14871 of file read.c.
References complaint, dwarf2_attr(), dwarf_tag_name(), get_mpz(), die_info::sect_off, sect_offset_str(), and die_info::tag.
Referenced by get_dwarf2_unsigned_rational_constant(), and has_zero_over_zero_small_attribute().
|
static |
Definition at line 14900 of file read.c.
References complaint, get_dwarf2_rational_constant(), gdb_mpz::negate(), die_info::sect_off, and sect_offset_str().
Referenced by finish_fixed_point_type().
|
static |
Definition at line 9634 of file read.c.
References dwarf2_per_bfd::dwp_checked, dwarf2_per_bfd::dwp_file, open_and_init_dwp_file(), and dwarf2_per_objfile::per_bfd.
Referenced by dw2_do_instantiate_symtab(), lookup_dwo_cutu(), lookup_dwp_signatured_type(), lookup_signatured_type(), process_skeletonless_type_units(), and queue_and_load_all_dwo_tus().
|
static |
Definition at line 3356 of file read.c.
References build_id_bfd_get(), global_index_cache, dwarf2_per_bfd::index_cache_res, index_cache::lookup_gdb_index(), and objfile::obfd.
Referenced by dwarf2_initialize_objfile().
|
static |
Definition at line 3369 of file read.c.
References build_id_bfd_get(), dwz_file::dwz_bfd, global_index_cache, dwz_file::index_cache_res, and index_cache::lookup_gdb_index().
Referenced by dwarf2_initialize_objfile().
|
static |
Definition at line 3329 of file read.c.
References dwarf2_section_info::buffer, dwarf2_section_info::empty(), dwarf2_section_info::get_flags(), dwarf2_section_info::read(), dwarf2_per_cu_data::section, and dwarf2_section_info::size.
Definition at line 14823 of file read.c.
References attribute::as_block(), attribute::as_unsigned(), attribute::constant_value(), dwarf_block::data, attribute::form, attribute::form_is_block(), attribute::form_is_unsigned(), objfile::obfd, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, safe_read_uleb128(), dwarf_block::size, and size.
Referenced by get_dwarf2_rational_constant().
|
static |
Definition at line 11281 of file read.c.
References die_info::child, dwarf2_get_pc_bounds(), dwarf2_get_subprogram_pc_bounds(), get_scope_pc_bounds(), PC_BOUNDS_RANGES, die_info::sibling, and die_info::tag.
Referenced by dwarf2_fetch_die_loc_sect_off(), get_scope_pc_bounds(), process_full_comp_unit(), and read_file_scope().
|
static |
Definition at line 20967 of file read.c.
References build_error_marker_type(), complaint, follow_die_sig_1(), dwarf2_per_objfile::get_type_for_signatured_type(), lookup_signatured_type(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, read_type_die(), die_info::sect_off, sect_offset_str(), dwarf2_per_objfile::set_type_for_signatured_type(), and type.
Referenced by get_DW_AT_signature_type(), and lookup_die_type().
|
static |
Definition at line 4550 of file read.c.
References allocate_type_unit_groups_table(), attribute::as_unsigned(), create_type_unit_group(), dwarf2_cu::dwo_unit, attribute::form_is_unsigned(), NO_STMT_LIST_TYPE_UNIT_PSYMTAB, NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE, tu_stats::nr_stmt_less_type_units, tu_stats::nr_symtab_sharers, tu_stats::nr_symtabs, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, and dwarf2_per_bfd::type_unit_groups.
Referenced by dwarf2_cu::setup_type_unit_groups().
|
static |
Definition at line 15085 of file read.c.
References GNAT_FIXED_POINT_SUFFIX, and name.
Referenced by read_base_type().
|
static |
Definition at line 19903 of file read.c.
References die_info::child, language_defn::class_name_from_physname(), die_specification(), dw2_linkage_name(), dwarf2_name(), dwarf2_cu::language_defn, name, dwarf2_per_objfile::objfile, objfile::per_bfd, dwarf2_cu::per_objfile, die_info::sibling, objfile_per_bfd_storage::storage_obstack, and die_info::tag.
Referenced by determine_prefix().
|
static |
Definition at line 7548 of file read.c.
References attribute::as_unsigned(), dwarf2_attr(), dwarf_decode_line_header(), dwarf_decode_lines(), attribute::form_is_unsigned(), file_and_directory::get_comp_dir(), dwarf2_per_cu_data::is_debug_types, dwarf2_per_cu_data::is_dwz, dwarf2_cu::line_header, dwarf2_cu::line_header_die_owner, line_header_eq_voidp(), line_header_hash(), dwarf2_per_objfile::line_header_hash, line_header_hash_voidp(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, die_info::tag, xcalloc(), and xfree().
Referenced by read_file_scope().
|
static |
Definition at line 11512 of file read.c.
References attribute::as_block(), attribute::constant_value(), decode_locdesc(), dwarf2_attr(), dwarf2_complex_location_expr_complaint(), attribute::form_is_block(), attribute::form_is_constant(), and attribute::form_is_section_offset().
Referenced by attr_to_dynamic_prop(), and dwarf2_add_field().
|
static |
Definition at line 11558 of file read.c.
References attribute::as_block(), bits_per_byte, complaint, attribute::constant_value(), dwarf_block::data, dwarf2_locexpr_baton::data, decode_locdesc(), dwarf2_attr(), dwarf2_complex_location_expr_complaint(), attribute::form_is_block(), attribute::form_is_constant(), attribute::form_is_section_offset(), dwarf2_locexpr_baton::is_reference, dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_cu, dwarf2_locexpr_baton::per_cu, dwarf2_cu::per_objfile, dwarf2_locexpr_baton::per_objfile, dwarf2_cu::producer_is_gcc_11, field::set_loc_bitpos(), field::set_loc_dwarf_block(), dwarf_block::size, and dwarf2_locexpr_baton::size.
|
static |
Definition at line 12923 of file read.c.
References dwarf2_add_field(), dwarf2_add_member_fn(), dwarf2_add_type_defn(), handle_variant(), handle_variant_part(), dwarf2_cu::lang(), language_rust, new_symbol(), read_func_scope(), die_info::tag, and type_can_define_types().
Referenced by handle_variant(), handle_variant_part(), and process_structure_scope().
|
static |
Definition at line 12867 of file read.c.
References attribute::as_block(), die_info::child, complaint, attribute::constant_value(), field_info::current_variant_part, dwarf2_attr(), field_info::fields, variant::first_field, attribute::form_is_constant(), handle_struct_member_die(), variant::last_field, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, variant_part_builder::processing_variant, die_info::sect_off, sect_offset_str(), dwarf_block::size, and variant_part_builder::variants.
Referenced by handle_struct_member_die().
|
static |
Definition at line 12806 of file read.c.
References die_info::child, complaint, field_info::current_variant_part, variant_part_builder::discriminant_offset, dwarf2_attr(), follow_die_ref(), attribute::form_is_ref(), handle_struct_member_die(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, variant_part_builder::processing_variant, die_info::sect_off, sect_offset_str(), variant_field::variant_parts, field_info::variant_parts, and variant_part_builder::variants.
Referenced by handle_struct_member_die().
|
static |
Definition at line 15144 of file read.c.
References die_info::attr(), dwarf2_attr(), follow_die_ref(), get_dwarf2_rational_constant(), and die_info::tag.
Referenced by read_base_type().
|
static |
Definition at line 7877 of file read.c.
References dwo_file::comp_dir, and dwo_file::dwo_name.
Referenced by allocate_dwo_file_hash_table().
|
static |
Definition at line 7935 of file read.c.
References dwo_unit::signature.
Referenced by allocate_dwo_unit_table().
|
static |
Definition at line 9463 of file read.c.
References dwo_unit::signature.
Referenced by allocate_dwp_loaded_cutus_table().
|
static |
Definition at line 1688 of file read.c.
References quick_file_names::hash, and hash_stmt_list_entry().
Referenced by create_quick_file_names_table().
|
static |
Definition at line 3540 of file read.c.
References signatured_type::signature.
Referenced by allocate_signatured_type_table().
|
static |
Definition at line 1660 of file read.c.
References dwo_unit::dwo_file, stmt_list_hash::dwo_unit, and stmt_list_hash::line_sect_off.
Referenced by hash_file_name_entry(), and hash_type_unit_group().
|
static |
Definition at line 4497 of file read.c.
References hash_stmt_list_entry().
Referenced by allocate_type_unit_groups_table().
Definition at line 9852 of file read.c.
References die_info::child, complaint, compute_delayed_physnames(), dwarf2_attr(), follow_die_ref(), die_info::in_process, dwarf2_cu::list_in_scope, die_info::parent, process_die(), die_info::sect_off, sect_offset_str(), die_info::sibling, and die_info::tag.
Referenced by read_func_scope(), and read_lexical_block_scope().
|
static |
Definition at line 3897 of file read.c.
References die_reader_specs::abbrev_table, die_reader_specs::abfd, die_reader_specs::buffer, dwarf2_section_info::buffer, die_reader_specs::buffer_end, die_reader_specs::cu, die_reader_specs::die_section, die_reader_specs::dwo_file, dwarf2_section_info::get_bfd_owner(), dwarf2_section_info::readin, dwarf2_per_cu_data::section, and dwarf2_section_info::size.
Referenced by cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), and read_cutu_die_from_dwo().
|
static |
Definition at line 18949 of file read.c.
References dwarf2_cu::lang(), language_ada, and name.
Referenced by check_ada_pragma_import(), and new_symbol().
|
static |
Definition at line 12635 of file read.c.
References complaint.
Referenced by read_subroutine_type().
|
static |
|
static |
Definition at line 12406 of file read.c.
References is_cplus_marker(), and name.
Referenced by process_structure_scope().
|
static |
Definition at line 17786 of file read.c.
Referenced by locexpr_describe_location_piece(), and var_decode_location().
|
static |
Definition at line 1247 of file read.c.
References line_header::offset_in_dwz, and line_header::sect_off.
Referenced by handle_DW_AT_stmt_list().
|
static |
Definition at line 1229 of file read.c.
References line_header::offset_in_dwz, and line_header::sect_off.
Referenced by handle_DW_AT_stmt_list(), and line_header_hash_voidp().
|
static |
Definition at line 1237 of file read.c.
References line_header_hash().
Referenced by handle_DW_AT_stmt_list().
|
static |
Definition at line 1722 of file read.c.
References dwarf2_cu::dies, dwarf2_find_base_address(), dwarf2_per_objfile::get_cu(), dwarf2_per_cu_data::is_debug_types, language_minimal, load_full_comp_unit(), and load_full_type_unit().
Referenced by dw2_do_instantiate_symtab(), dwarf2_fetch_constant_bytes(), dwarf2_fetch_die_loc_sect_off(), and dwarf2_fetch_die_type_sect_off().
|
static |
Definition at line 5719 of file read.c.
References die_info::child, cutu_reader::comp_unit_die, dwarf2_cu::comp_unit_obstack, die_reader_specs::cu, dwarf2_cu::die_hash, dwarf2_cu::dies, cutu_reader::dummy_p, die_info::eq(), comp_unit_head::get_length_without_initial(), die_info::has_children, die_info::hash(), dwarf2_cu::header, cutu_reader::info_ptr, dwarf2_per_cu_data::is_debug_types, cutu_reader::keep(), prepare_one_comp_unit(), and read_die_and_siblings().
Referenced by follow_die_offset(), load_cu(), and process_imported_unit_die().
|
static |
Definition at line 21058 of file read.c.
References dwarf2_per_objfile::get_cu(), dwarf2_per_cu_data::is_debug_types, and read_signatured_type().
Referenced by load_cu(), and queue_and_load_dwo_tu().
|
static |
Definition at line 8459 of file read.c.
References virtual_v1_dwo_sections::abbrev, dwop_section_names::abbrev_dwo, dwop_section_names, dwop_section_names::info_dwo, virtual_v1_dwo_sections::info_or_types, virtual_v1_dwo_sections::line, dwop_section_names::line_dwo, virtual_v1_dwo_sections::loc, dwop_section_names::loc_dwo, virtual_v1_dwo_sections::macinfo, dwop_section_names::macinfo_dwo, virtual_v1_dwo_sections::macro, dwop_section_names::macro_dwo, dwarf2_section_names::matches(), dwarf2_section_info::s, dwarf2_section_info::section, dwarf2_section_info::size, virtual_v1_dwo_sections::str_offsets, dwop_section_names::str_offsets_dwo, and dwop_section_names::types_dwo.
Referenced by create_dwo_unit_in_dwp_v1().
|
static |
Definition at line 19721 of file read.c.
References attribute::as_signature(), build_error_marker_type(), complaint, dwarf2_find_containing_comp_unit(), dwarf_attr_name(), follow_die_ref(), attribute::form, attribute::form_is_ref(), get_die_type_at_offset(), attribute::get_ref_die_offset(), get_signatured_type(), attribute::name, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, read_type_die(), die_info::sect_off, dwarf2_per_cu_data::sect_off, and sect_offset_str().
Referenced by die_containing_type(), die_descriptive_type(), and die_type().
|
static |
Definition at line 9776 of file read.c.
References dwarf2_per_cu_data::is_debug_types, lookup_dwo_cutu(), dwarf2_cu::per_cu, and dwo_unit::signature.
Referenced by lookup_dwo_unit().
|
static |
Definition at line 9661 of file read.c.
References dwo_file::cus, dwp_file::cus, dwarf_read_debug_printf, dwo_file::dwo_file(), dwp_file::dwp_file(), get_dwp_file(), lookup_dwo_file_slot(), lookup_dwo_unit_in_dwp(), dwp_file::name, dwarf2_per_objfile::objfile, objfile_name(), open_and_init_dwo_file(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, dwarf2_per_cu_data::sect_off, sect_offset_str(), dwo_unit::signature, dwo_file::tus, and dwp_file::tus.
Referenced by lookup_dwo_comp_unit(), and lookup_dwo_type_unit().
|
static |
Definition at line 7916 of file read.c.
References allocate_dwo_file_hash_table(), dwo_file::comp_dir, dwarf2_per_bfd::dwo_files, dwo_file::dwo_name, and dwarf2_per_objfile::per_bfd.
Referenced by create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_dwo_unit_in_dwp_v5(), and lookup_dwo_cutu().
|
static |
Definition at line 4083 of file read.c.
References attribute::as_unsigned(), dwarf2_attr(), attribute::form_is_unsigned(), dwarf2_cu::header, comp_unit_head::signature, and comp_unit_head::version.
Referenced by create_dwo_cu_reader(), and lookup_dwo_unit().
|
static |
Definition at line 3758 of file read.c.
References add_type_unit(), allocate_signatured_type_table(), dwo_unit::dwo_file, dwo_file::dwo_file(), dwarf2_cu::dwo_unit, signatured_type::dwo_unit, fill_in_sig_entry_from_dwo_entry(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwo_unit::signature, dwarf2_per_bfd::signatured_types, dwarf2_per_cu_data::tu_read, and dwo_file::tus.
Referenced by lookup_signatured_type(), and queue_and_load_dwo_tu().
|
static |
Definition at line 9788 of file read.c.
References dwarf2_per_cu_data::is_debug_types, lookup_dwo_cutu(), dwarf2_cu::per_cu, and signatured_type::signature.
Referenced by lookup_dwo_unit().
|
static |
Definition at line 4099 of file read.c.
References dwarf2_dwo_name(), dwarf2_string_attr(), dwarf2_per_cu_data::is_debug_types, lookup_dwo_comp_unit(), lookup_dwo_id(), lookup_dwo_type_unit(), dwarf2_per_bfd::obfd, dwarf2_per_cu_data::per_bfd, dwarf2_cu::per_cu, and dwo_unit::signature.
Referenced by cutu_reader::cutu_reader().
|
static |
Definition at line 9064 of file read.c.
References create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_dwo_unit_in_dwp_v5(), dwp_file::cus, dwp_file::dbfd, dwp_hash_table::hash_table, dwp_file::loaded_cus, dwp_file::loaded_tus, dwp_file::name, dwp_hash_table::nr_slots, read_4_bytes(), read_8_bytes(), dwo_unit::signature, dwp_file::tus, dwp_hash_table::unit_table, and dwp_file::version.
Referenced by lookup_dwo_cutu(), and lookup_dwp_signatured_type().
|
static |
Definition at line 3824 of file read.c.
References add_type_unit(), allocate_signatured_type_table(), dwarf2_cu::dwo_unit, fill_in_sig_entry_from_dwo_entry(), get_dwp_file(), lookup_dwo_unit_in_dwp(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwarf2_per_bfd::signatured_types, and dwp_file::tus.
Referenced by lookup_signatured_type().
|
static |
Definition at line 17010 of file read.c.
References dwarf2_cu::dwo_unit, dwarf2_cu::header, comp_unit_head::initial_length_size, dwarf2_cu::loclist_base, LOCLIST_HEADER_SIZE32, and LOCLIST_HEADER_SIZE64.
Referenced by read_loclist_index().
|
static |
Definition at line 3868 of file read.c.
References dwarf2_cu::dwo_unit, get_dwp_file(), lookup_dwo_signatured_type(), lookup_dwp_signatured_type(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, and dwarf2_per_bfd::signatured_types.
Referenced by follow_die_sig(), and get_signatured_type().
|
static |
Definition at line 16967 of file read.c.
Referenced by dwarf2_initialize_objfile(), and cooked_index::make_quick_functions().
|
static |
Definition at line 2256 of file read.c.
Referenced by mapped_index_base::find_name_components_bounds().
|
static |
Definition at line 13915 of file read.c.
References comp_unit_head::addr_size, objfile::arch(), attribute::as_block(), attribute::constant_value(), dwarf2_locexpr_baton::data, dwarf2_locexpr_index, attribute::form_is_block(), attribute::form_is_constant(), gdbarch_byte_order(), dwarf2_cu::header, dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_cu, dwarf2_locexpr_baton::per_cu, dwarf2_cu::per_objfile, dwarf2_locexpr_baton::per_objfile, die_info::sect_off, dwarf2_per_cu_data::sect_off, symbol::set_aclass_index(), dwarf_block::size, dwarf2_locexpr_baton::size, store_unsigned_integer(), and SYMBOL_LOCATION_BATON.
Referenced by read_common_block().
|
static |
Definition at line 5602 of file read.c.
References dwarf2_cu::add_dependence(), dwarf2_per_objfile::get_cu(), dwarf2_cu::last_used, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, queue_comp_unit(), dwarf2_per_cu_data::queued, and dwarf2_per_objfile::symtab_set_p().
Referenced by follow_die_offset(), follow_die_sig_1(), process_imported_unit_die(), and queue_and_load_dwo_tu().
|
static |
Definition at line 12600 of file read.c.
References complaint, get_alignment(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, die_info::sect_off, sect_offset_str(), and set_type_align().
Referenced by read_array_type(), read_base_type(), read_enumeration_type(), read_set_type(), read_structure_type(), read_subrange_type(), and read_tag_reference_type().
|
static |
Definition at line 14205 of file read.c.
References CP_ANONYMOUS_NAMESPACE_STR, dwarf2_extension(), dwarf2_string_attr(), and name.
Referenced by gen_maybe_namespace_elt(), read_namespace(), read_namespace_type(), and value_maybe_namespace_elt().
|
static |
Definition at line 19639 of file read.c.
References dwarf2_cu::lang(), and language_ada.
Referenced by set_die_type().
|
static |
Definition at line 18978 of file read.c.
References symbol::aclass(), ada_block_index, ada_imported_index, add_ada_export_symbol(), add_symbol_to_list(), attribute::as_address(), attribute::as_boolean(), attribute::as_nonnegative(), dwarf2_per_bfd::can_copy, type::code(), COMMON_BLOCK_DOMAIN, complaint, attribute::constant_value(), cp_scan_for_anonymous_namespaces(), die_is_declaration(), die_type(), dw2_linkage_name(), dwarf2_attr(), dwarf2_const_value(), dwarf2_full_name(), dwarf2_name(), dwarf2_physname(), dwarf_tag_name(), line_header::file_name_at(), objfile::flags, dwarf2_cu::get_builder(), buildsym_compunit::get_current_context_stack(), buildsym_compunit::get_file_symbols(), buildsym_compunit::get_global_symbols(), dwarf2_per_bfd::has_section_at_zero, symbol::hash_next, is_ada_import_or_export(), attribute::is_nonnegative(), LABEL_DOMAIN, dwarf2_cu::lang(), language_ada, language_cplus, language_d, language_fortran, language_rust, dwarf2_cu::line_header, general_symbol_info::linkage_name(), dwarf2_cu::list_in_scope, LOC_BLOCK, LOC_COMMON_BLOCK, LOC_LABEL, LOC_OPTIMIZED_OUT, LOC_STATIC, LOC_TYPEDEF, LOC_UNRESOLVED, lookup_minimal_symbol_linkage(), symbol::maybe_copied, bound_minimal_symbol::minsym, MODULE_DOMAIN, name, context_stack::name, type::name(), OBJF_MAINLINE, dwarf2_per_objfile::objfile, objfile::objfile_obstack, OBJSTAT, die_info::parent, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, dwarf2_cu::processing_has_namespace_info, dwarf2_per_objfile::relocate(), general_symbol_info::search_name(), SECT_OFF_TEXT, symbol::set_aclass_index(), general_symbol_info::set_demangled_name(), symbol::set_domain(), symbol::set_is_argument(), symbol::set_is_artificial(), symbol::set_is_inlined(), general_symbol_info::set_language(), symbol::set_line(), general_symbol_info::set_linkage_name(), type::set_name(), general_symbol_info::set_section_index(), symbol::set_symtab(), symbol::set_type(), symbol::set_value_address(), STRUCT_DOMAIN, SYMBOL_LOCATION_BATON, file_entry::symtab, die_info::tag, objfile::template_symbols, symbol::type(), symbol::value_address(), var_decode_location(), and VAR_DOMAIN.
Referenced by c_print_typedef(), check_ada_pragma_import(), dwarf2_add_field(), handle_struct_member_die(), language_defn::print_typedef(), ada_language::print_typedef(), m2_language::print_typedef(), pascal_language::print_typedef(), rust_language::print_typedef(), process_die(), process_enumeration_scope(), process_structure_scope(), read_alias(), read_common_block(), read_func_scope(), read_module(), read_namespace(), and read_variable().
|
static |
Definition at line 9297 of file read.c.
References dwo_file::comp_dir, COMPILE, create_cus_hash_table(), create_debug_type_hash_table(), create_debug_types_hash_table(), dwo_file::cus, dwo_file::dbfd, dwarf2_locate_dwo_sections(), dwarf_read_debug_printf, dwo_file::dwo_file(), dwo_file::dwo_name, gdb_bfd_sections(), dwarf2_per_objfile::objfile, open_dwo_file(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, dwo_file::tus, and dwarf2_per_cu_data::version().
Referenced by lookup_dwo_cutu().
|
static |
Definition at line 9534 of file read.c.
References allocate_dwp_loaded_cutus_table(), create_dwp_hash_table(), dwp_file::cus, dwp_file::dbfd, dwarf2_locate_common_dwp_sections(), dwarf2_locate_v2_dwp_sections(), dwarf2_locate_v5_dwp_sections(), dwarf_read_debug_printf, dwp_file::elf_sections, gdb_bfd_sections(), ldirname(), dwp_file::loaded_cus, dwp_file::loaded_tus, name, dwp_file::name, dwp_hash_table::nr_units, dwp_file::num_sections, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_bfd::obstack, open_dwp_file(), objfile::original_name, dwarf2_per_objfile::per_bfd, objfile::separate_debug_objfile_backlink, dwp_file::tus, dwp_hash_table::version, and dwp_file::version.
Referenced by get_dwp_file().
|
static |
Definition at line 9212 of file read.c.
References debug_file_directory, and try_open_dwop_file().
Referenced by open_and_init_dwo_file().
|
static |
Definition at line 9500 of file read.c.
References debug_file_directory, and try_open_dwop_file().
Referenced by open_and_init_dwp_file().
|
static |
Definition at line 5333 of file read.c.
References read_unsigned_leb128().
Referenced by create_debug_type_hash_table(), cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), and read_cutu_die_from_dwo().
|
static |
Definition at line 5348 of file read.c.
References die_reader_specs::abbrev_table, die_reader_specs::abfd, die_reader_specs::cu, dwarf2_cu::header, dwarf2_per_cu_data::is_debug_types, abbrev_table::lookup_abbrev(), dwarf2_cu::per_cu, read_unsigned_leb128(), comp_unit_head::sect_off, and sect_offset_str().
Referenced by cooked_indexer::index_dies(), cooked_indexer::scan_attributes(), and skip_children().
|
static |
Definition at line 21890 of file read.c.
References dwarf2_per_cu_offset_and_type::per_cu, and dwarf2_per_cu_offset_and_type::sect_off.
Referenced by set_die_type().
|
static |
Definition at line 21879 of file read.c.
References dwarf2_per_cu_offset_and_type::per_cu, and dwarf2_per_cu_offset_and_type::sect_off.
Referenced by set_die_type().
|
static |
Definition at line 21718 of file read.c.
References attribute::constant_value(), dwarf2_attr(), dwarf2_string_attr(), dwarf_lang_to_enum_language(), dwarf_tag_name(), language_def(), dwarf2_cu::language_defn, language_go, language_opencl, dwarf2_cu::per_cu, dwarf2_cu::producer, dwarf2_per_cu_data::sect_off, sect_offset_str(), dwarf2_per_cu_data::set_lang(), dwarf2_per_cu_data::set_unit_type(), and die_info::tag.
Referenced by build_type_psymtabs_reader(), cooked_indexer::ensure_cu_exists(), load_full_comp_unit(), process_psymtab_comp_unit(), read_file_scope(), read_signatured_type(), and read_type_unit_scope().
|
static |
Definition at line 4991 of file read.c.
References dwarf_read_debug_printf, tu_stats::nr_all_type_units_reallocs, tu_stats::nr_stmt_less_type_units, tu_stats::nr_symtab_sharers, tu_stats::nr_symtabs, tu_stats::nr_tus, tu_stats::nr_uniq_abbrev_tables, and dwarf2_per_objfile::per_bfd.
|
static |
Definition at line 6378 of file read.c.
References compute_compunit_symtab_includes(), dwarf2_per_bfd::just_read_cus, and dwarf2_per_objfile::per_bfd.
Referenced by dw2_instantiate_symtab().
Definition at line 6648 of file read.c.
References die_info::child, complaint, dwarf_tag_name(), dwarf2_cu::lang(), language_ada, language_fortran, new_symbol(), die_info::parent, process_enumeration_scope(), process_imported_unit_die(), process_structure_scope(), dwarf2_cu::processing_has_namespace_info, read_alias(), read_call_site_scope(), read_common_block(), read_file_scope(), read_func_scope(), read_import_statement(), read_lexical_block_scope(), read_module(), read_namespace(), read_type_die(), read_type_unit_scope(), read_variable(), and die_info::tag.
Referenced by inherit_abstract_dies(), process_enumeration_scope(), process_full_comp_unit(), process_full_type_unit(), process_structure_scope(), read_file_scope(), read_func_scope(), read_import_statement(), read_lexical_block_scope(), read_module(), read_namespace(), and read_type_unit_scope().
|
static |
Definition at line 5056 of file read.c.
References process_skeletonless_type_unit(), and dwo_file::tus.
Referenced by process_skeletonless_type_units().
Definition at line 13366 of file read.c.
References die_info::child, die_is_declaration(), dwarf2_name(), get_die_type(), dwarf2_per_cu_data::is_debug_types, name, new_symbol(), dwarf2_cu::per_cu, process_die(), read_enumeration_type(), die_info::sect_off, die_info::sibling, die_info::tag, and signatured_type::type_offset_in_section.
Referenced by process_die().
Definition at line 6393 of file read.c.
References dwarf2_cu::call_site_htab, compute_delayed_physnames(), dwarf2_cu::dies, dwarf2_find_base_address(), dwarf2_record_block_ranges(), dwarf_tag_name(), buildsym_compunit::end_compunit_symtab_from_static_block(), buildsym_compunit::end_compunit_symtab_get_static_block(), fixup_go_packaging(), dwarf2_cu::get_builder(), get_scope_pc_bounds(), dwarf2_cu::has_loclist, dwarf2_per_bfd::just_read_cus, dwarf2_cu::lang(), symtab::language(), language_c, language_go, language_rust, language_unknown, dwarf2_cu::method_list, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, compunit_symtab::primary_filetab(), process_die(), dwarf2_cu::producer, producer_is_gcc(), producer_is_gcc_ge_4(), dwarf2_per_objfile::relocate(), dwarf2_cu::reset_builder(), rust_union_quirks(), dwarf2_per_cu_data::sect_off, sect_offset_str(), compunit_symtab::set_call_site_htab(), compunit_symtab::set_epilogue_unwind_valid(), symtab::set_language(), compunit_symtab::set_locations_valid(), dwarf2_per_objfile::set_symtab(), block::static_block(), and die_info::tag.
Referenced by process_queue().
Definition at line 6506 of file read.c.
References buildsym_compunit::augment_type_symtab(), type_unit_group_unshareable::compunit_symtab, compute_delayed_physnames(), dwarf2_cu::dies, buildsym_compunit::end_expandable_symtab(), fixup_go_packaging(), dwarf2_cu::get_builder(), dwarf2_per_objfile::get_type_unit_group_unshareable(), dwarf2_per_cu_data::is_debug_types, dwarf2_cu::lang(), symtab::language(), language_c, language_go, language_rust, dwarf2_cu::method_list, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, compunit_symtab::primary_filetab(), process_die(), dwarf2_cu::reset_builder(), rust_union_quirks(), symtab::set_language(), dwarf2_per_objfile::set_symtab(), and signatured_type::type_unit_group.
Referenced by process_queue().
Definition at line 6572 of file read.c.
References dwarf2_attr(), dwarf2_find_containing_comp_unit(), attribute::form, dwarf2_per_objfile::get_cu(), attribute::get_ref_die_offset(), dwarf2_per_cu_data::imported_symtabs_push(), dwarf2_per_cu_data::is_debug_types, dwarf2_per_cu_data::is_dwz, dwarf2_cu::lang(), dwarf2_per_cu_data::lang(), language_cplus, load_full_comp_unit(), maybe_queue_comp_unit(), dwarf2_per_objfile::objfile, objfile_name(), die_info::parent, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and dwarf2_per_cu_data::unit_type().
Referenced by process_die().
|
static |
Definition at line 4826 of file read.c.
References build_type_psymtabs_reader(), cutu_reader::comp_unit_die, die_reader_specs::cu, cutu_reader::dummy_p, cooked_index_storage::get_abbrev_cache(), dwarf2_per_cu_data::is_debug_types, dwarf2_cu::lang(), language_minimal, cooked_indexer::make_index(), prepare_one_comp_unit(), dwarf2_per_cu_data::scanned, and die_info::tag.
|
static |
Definition at line 5649 of file read.c.
References dwarf_read_debug, dwarf_read_debug_printf, dwarf2_per_objfile::get_cu(), dwarf2_per_cu_data::is_debug_types, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_cu, dwarf2_queue_item::per_cu, dwarf2_cu::per_objfile, dwarf2_queue_item::pretend_language, process_full_comp_unit(), process_full_type_unit(), dwarf2_per_objfile::queue, dwarf2_per_cu_data::queued, dwarf2_per_cu_data::sect_off, sect_offset_str(), signatured_type::signature, and dwarf2_per_objfile::symtab_set_p().
Referenced by dw2_do_instantiate_symtab().
|
static |
Definition at line 5019 of file read.c.
References add_type_unit(), allocate_signatured_type_table(), build_type_psymtabs_reader(), cutu_reader::dummy_p, fill_in_sig_entry_from_dwo_entry(), and dwo_unit::signature.
Referenced by process_dwo_file_for_skeletonless_type_units().
|
static |
Definition at line 5072 of file read.c.
References dwarf2_per_bfd::dwo_files, get_dwp_file(), dwarf2_per_objfile::per_bfd, and process_dwo_file_for_skeletonless_type_units().
Definition at line 12979 of file read.c.
References ALLOCATE_CPLUS_STRUCT_TYPE, die_info::child, complaint, die_containing_type(), die_is_declaration(), dwarf2_attach_fields_to_type(), dwarf2_attach_fn_fields_to_type(), dwarf2_attr(), type::field(), line_header::file_names(), field_info::fnfieldlists, get_die_type(), handle_struct_member_die(), is_vtable_name(), dwarf2_cu::lang(), language_ada, language_rust, dwarf2_cu::line_header, field::name(), type::name(), field_info::nested_types_list, new_symbol(), field_info::nfields(), type::num_fields(), dwarf2_per_objfile::objfile, objfile_name(), objfile::objfile_obstack, dwarf2_cu::per_objfile, process_die(), dwarf2_cu::producer, quirk_ada_thick_pointer_struct(), quirk_gcc_member_function_pointer(), read_structure_type(), dwarf2_cu::rust_unions, die_info::sect_off, sect_offset_str(), set_type_vptr_basetype(), set_type_vptr_fieldno(), die_info::sibling, symbol::symtab, die_info::tag, type, TYPE_ALLOC, TYPE_N_BASECLASSES, TYPE_N_TEMPLATE_ARGUMENTS, TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD, TYPE_TEMPLATE_ARGUMENT, TYPE_TEMPLATE_ARGUMENTS, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD_COUNT, TYPE_VPTR_FIELDNO, and field_info::typedef_field_list.
Referenced by process_die().
bool producer_is_clang | ( | struct dwarf2_cu * | cu | ) |
Definition at line 7510 of file read.c.
References check_producer(), dwarf2_cu::checked_producer, and dwarf2_cu::producer_is_clang.
Referenced by check_producer(), and dwarf_decode_macro_bytes().
|
static |
Definition at line 11456 of file read.c.
References check_producer(), dwarf2_cu::checked_producer, and dwarf2_cu::producer_is_codewarrior.
Referenced by lnp_state_machine::record_line().
|
static |
Definition at line 7500 of file read.c.
References check_producer(), dwarf2_cu::checked_producer, and dwarf2_cu::producer_is_gcc_lt_4_3.
Referenced by find_file_and_directory().
|
static |
Definition at line 11443 of file read.c.
References check_producer(), dwarf2_cu::checked_producer, and dwarf2_cu::producer_is_gxx_lt_4_6.
Referenced by dwarf2_access_attribute().
|
static |
Definition at line 7487 of file read.c.
References check_producer(), dwarf2_cu::checked_producer, and dwarf2_cu::producer_is_icc.
Referenced by check_producer(), and dwarf2_init_integer_type().
|
static |
Definition at line 7474 of file read.c.
References check_producer(), dwarf2_cu::checked_producer, and dwarf2_cu::producer_is_icc_lt_14.
Referenced by read_structure_type().
Definition at line 14590 of file read.c.
References attribute::as_boolean(), dwarf2_attr(), dwarf2_cu::lang(), language_c, language_objc, language_opencl, dwarf2_cu::producer, and producer_is_realview().
Referenced by read_subroutine_type().
|
static |
Definition at line 9827 of file read.c.
References dwo_unit::dwo_file, dwo_file::dwo_file(), dwarf2_cu::dwo_unit, get_dwp_file(), dwarf2_per_cu_data::is_debug_types, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, queue_and_load_dwo_tu(), and dwo_file::tus.
Referenced by dw2_do_instantiate_symtab().
|
static |
Definition at line 9800 of file read.c.
References dwarf2_per_cu_data::imported_symtabs_push(), dwarf2_cu::lang(), load_full_type_unit(), lookup_dwo_signatured_type(), maybe_queue_comp_unit(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, and dwo_unit::signature.
Referenced by queue_and_load_all_dwo_tus().
|
static |
Definition at line 5566 of file read.c.
References dwarf2_cu::per_cu, dwarf2_cu::per_objfile, dwarf2_per_objfile::queue, and dwarf2_per_cu_data::queued.
Referenced by dw2_do_instantiate_symtab(), and maybe_queue_comp_unit().
|
static |
Definition at line 13553 of file read.c.
References type::alloc_fields(), attribute::as_block(), type::bounds(), die_info::child, type::code(), create_static_range_type(), dwarf_block::data, dwarf2_attr(), main_type::dyn_prop_list, type::field(), attribute::form_is_block(), objfile::intern(), dwarf2_cu::lang(), type::length(), lookup_pointer_type(), type::main_type, name, type::name(), type_allocator::new_type(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, read_subrange_index_type(), recognize_bound_expression(), type::set_code(), type::set_index_type(), field::set_is_artificial(), type::set_length(), field::set_loc_bitpos(), field::set_name(), type::set_name(), field::set_type(), dwarf_block::size, type::target_type(), field::type(), type, and type_align().
Referenced by read_array_type().
|
static |
Definition at line 12513 of file read.c.
References type::code(), type::field(), dwarf2_cu::lang(), language_ada, lookup_pointer_type(), field::name(), type::num_fields(), rewrite_array_type(), field::set_type(), type::target_type(), and field::type().
Referenced by process_structure_scope().
|
static |
Definition at line 12425 of file read.c.
References type::code(), type::field(), type::fields(), type::has_varargs(), field::name(), type_allocator::new_type(), new_type(), type::num_fields(), smash_to_method_type(), smash_to_methodptr_type(), type::target_type(), and field::type().
Referenced by process_structure_scope().
Definition at line 6020 of file read.c.
References type::alloc_fields(), alloc_rust_variant(), type::bit_offset(), type::code(), complaint, type::field(), FIELD_LOC_KIND_BITPOS, FIELD_LOC_KIND_ENUMVAL, type::fields(), discriminant_range::high, type::length(), field::loc_bitpos(), field::loc_enumval(), field::loc_kind(), discriminant_range::low, name, field::name(), type::name(), type_allocator::new_type(), type::num_fields(), objfile_name(), objfile::objfile_obstack, RUST_ENUM_PREFIX, rust_fully_qualify(), rust_last_path_segment(), type::set_code(), type::set_fields(), field::set_is_artificial(), type::set_length(), field::set_loc_bitpos(), field::set_name(), type::set_name(), type::set_num_fields(), field::set_type(), field::type(), and TYPE_ZALLOC.
Referenced by rust_union_quirks().
|
static |
Definition at line 3513 of file read.c.
References dwarf2_section_info::get_bfd_owner(), dwarf2_per_objfile::objfile, read_2_bytes(), read_initial_length(), read_offset(), dwarf2_section_info::section, and version.
Referenced by build_type_psymtabs().
|
static |
Definition at line 17594 of file read.c.
References dwarf2_cu::addr_base, comp_unit_head::addr_size, dwarf2_cu::header, dwarf2_cu::per_objfile, and read_addr_index_1().
Referenced by dwarf2_rnglists_process(), read_addr_index_from_leb128(), and read_attribute_reprocess().
|
static |
Definition at line 17566 of file read.c.
References dwarf2_per_bfd::addr, dwarf2_section_info::buffer, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dwarf2_section_info::read(), and dwarf2_section_info::size.
Referenced by dwarf2_read_addr_index(), and read_addr_index().
|
static |
Definition at line 17603 of file read.c.
References objfile::obfd, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, read_addr_index(), and read_unsigned_leb128().
Referenced by decode_locdesc(), and var_decode_location().
bool read_addrmap_from_aranges | ( | dwarf2_per_objfile * | per_objfile, |
dwarf2_section_info * | section, | ||
addrmap * | mutable_map ) |
Definition at line 1842 of file read.c.
References dwarf2_per_cu_data::addresses_seen, dwarf2_per_objfile::adjust(), dwarf2_per_bfd::all_units, objfile::arch(), dwarf2_section_info::buffer, extract_unsigned_integer(), gdbarch_byte_order(), dwarf2_per_bfd::has_section_at_zero, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dwarf2_section_info::read(), read_2_bytes(), read_initial_length(), sect_offset_str(), addrmap::set_empty(), dwarf2_section_info::size, and version.
Referenced by create_addrmap_from_aranges(), and dwarf2_build_psymtabs_hard().
Definition at line 7210 of file read.c.
References type::code(), complaint, die_type(), dwarf2_attr(), follow_die_ref(), get_die_type_at_offset(), attribute::get_ref_die_offset(), LOC_UNRESOLVED, MAX_NESTED_IMPORTED_DECLARATIONS, new_symbol(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, die_info::sect_off, sect_offset_str(), symbol::set_aclass_index(), die_info::tag, type, and var_decode_location().
Referenced by process_die().
|
static |
Definition at line 13841 of file read.c.
References array_column_major, language_defn::array_ordering(), array_row_major, attribute::constant_value(), dwarf2_attr(), dwarf2_cu::lang(), dwarf2_cu::language_defn, language_fortran, and dwarf2_cu::producer.
Referenced by read_array_type().
Definition at line 13674 of file read.c.
References dwarf2_cu::addr_sized_int_type(), attribute::as_unsigned(), attr_to_dynamic_prop(), type::bit_stride(), builtin_type::builtin_int, builtin_type(), die_info::child, complaint, attribute::constant_value(), create_array_type_with_stride(), create_static_range_type(), die_type(), dwarf2_attr(), dwarf2_name(), attribute::form_is_unsigned(), get_die_type(), type::index_type(), dwarf2_cu::lang(), language_ada, type::length(), make_vector_type(), maybe_set_alignment(), name, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, quirk_ada_thick_pointer(), read_array_order(), read_type_die(), die_info::sect_off, sect_offset_str(), set_descriptive_type(), set_die_type(), type::set_is_multi_dimensional(), type::set_length(), type::set_name(), die_info::sibling, die_info::tag, and type.
Referenced by read_type_die_1().
|
static |
Definition at line 17499 of file read.c.
References attr_abbrev::form, attr_abbrev::implicit_const, attr_abbrev::name, attribute::name, read_attribute_value(), and attribute::string_is_canonical.
Referenced by cooked_indexer::index_imported_unit(), read_full_die_1(), cooked_indexer::scan_attributes(), and skip_one_die().
|
static |
Definition at line 17158 of file read.c.
References attribute::as_unsigned_reprocess(), attribute::canonical_string_p(), die_reader_specs::cu, die_reader_specs::dwo_file, attribute::form, read_addr_index(), read_dwo_str_index(), read_loclist_index(), read_rnglist_index(), read_stub_str_index(), attribute::set_address(), attribute::set_string_noncanonical(), and attribute::set_unsigned().
Referenced by read_attribute_value(), and read_toplevel_die().
|
static |
Definition at line 17210 of file read.c.
References die_reader_specs::abfd, dwarf2_per_objfile::adjust(), attribute::as_unsigned(), complaint, die_reader_specs::cu, dwarf_block::data, dwarf2_get_dwz_file(), dwarf_alloc_block(), dwarf_form_name(), attribute::form, attribute::form_is_ref(), dwarf2_cu::header, dwarf2_per_cu_data::is_dwz, attribute::name, dwarf2_per_objfile::objfile, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_cu, dwarf2_cu::per_objfile, read_1_byte(), read_2_bytes(), read_3_bytes(), read_4_bytes(), read_8_bytes(), comp_unit_head::read_address(), read_attribute_reprocess(), read_attribute_value(), read_direct_string(), read_indirect_string(), dwarf2_per_objfile::read_line_string(), read_n_bytes(), comp_unit_head::read_offset(), read_signed_leb128(), dwz_file::read_string(), read_unsigned_leb128(), comp_unit_head::sect_off, attribute::set_address(), attribute::set_block(), attribute::set_signature(), attribute::set_signed(), attribute::set_string_noncanonical(), attribute::set_unsigned(), attribute::set_unsigned_reprocess(), dwarf_block::size, and comp_unit_head::version.
Referenced by read_attribute(), and read_attribute_value().
Definition at line 15232 of file read.c.
References objfile::arch(), bits, type::code(), complaint, attribute::constant_value(), dwarf2_attr(), dwarf2_init_complex_target_type(), dwarf2_init_float_type(), dwarf2_init_integer_type(), dwarf2_name(), dwarf_type_encoding_name(), finish_fixed_point_type(), attribute::form_is_constant(), gdbarch_byte_order(), gnat_encoded_fixed_point_type_info(), GNAT_FIXED_POINT_SUFFIX, has_zero_over_zero_small_attribute(), init_boolean_type(), init_character_type(), init_complex_type(), init_decfloat_type(), init_fixed_point_type(), init_pointer_type(), dwarf2_cu::lang(), language_ada, language_fortran, language_m2, language_pascal, language_rust, type::length(), maybe_set_alignment(), name, type::name(), type_allocator::new_type(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_objfile, set_die_type(), type::set_endianity_is_not_default(), type::set_has_no_signedness(), type, TYPE_MAIN_TYPE, TYPE_SPECIFIC_FIELD, and TYPE_SPECIFIC_INT.
Referenced by read_type_die_1().
Definition at line 10376 of file read.c.
References dwarf2_per_objfile::adjust(), objfile::arch(), attribute::as_address(), attribute::as_block(), attribute::as_unsigned(), die_info::attr(), call_site::call_site(), dwarf2_cu::call_site_htab, CALL_SITE_PARAMETER_DWARF_REG, CALL_SITE_PARAMETER_FB_OFFSET, CALL_SITE_PARAMETER_PARAM_OFFSET, die_info::child, complaint, dwarf2_locexpr_baton::data, call_site_parameter::data_value, call_site_parameter::data_value_size, die_is_declaration(), dw2_linkage_name(), dwarf2_attr(), dwarf2_flag_true_p(), dwarf2_get_pc_bounds(), dwarf2_physname(), dwarf2_ranges_read_low_addrs(), dwarf_block_to_dwarf_reg(), dwarf_block_to_sp_offset(), call_site_parameter_u::dwarf_reg, call_site::eq(), call_site_parameter_u::fb_offset, follow_die_ref(), attribute::form_is_block(), attribute::form_is_ref(), attribute::form_is_unsigned(), gdb_static_assert(), get_die_type(), attribute::get_ref_die_offset(), dwarf2_cu::gnu_ranges_base, call_site::hash(), dwarf2_cu::header, call_site_parameter::kind, loc, nullptr, dwarf2_per_objfile::objfile, objfile_name(), objfile::objfile_obstack, comp_unit_head::offset_in_cu_p(), paddress(), call_site_parameter_u::param_cu_off, call_site::parameter, call_site::parameter_count, die_info::parent, call_site::pc(), PC_BOUNDS_INVALID, dwarf2_cu::per_cu, dwarf2_locexpr_baton::per_cu, call_site::per_objfile, dwarf2_cu::per_objfile, dwarf2_locexpr_baton::per_objfile, comp_unit_head::sect_off, die_info::sect_off, sect_offset_str(), die_info::sibling, dwarf_block::size, dwarf2_locexpr_baton::size, die_info::tag, call_site::tail_call_next, TYPE_TAIL_CALL_LIST, call_site_parameter::u, call_site_parameter::value, and call_site_parameter::value_size.
Referenced by process_die().
Definition at line 13986 of file read.c.
References die_info::child, common_block, complaint, common_block::contents, dwarf2_attr(), dwarf2_complex_location_expr_complaint(), dwarf2_invalid_attrib_class_complaint(), attribute::form_is_block(), attribute::form_is_constant(), attribute::form_is_section_offset(), mark_common_block_symbol_computed(), common_block::n_entries, new_symbol(), dwarf2_per_objfile::objfile, objfile_name(), objfile::objfile_obstack, dwarf2_cu::per_objfile, die_info::sect_off, sect_offset_str(), symbol::set_value_common_block(), die_info::sibling, size, and die_info::tag.
Referenced by process_die().
|
static |
Definition at line 5201 of file read.c.
References dwarf2_per_bfd::all_units, dwarf2_per_bfd::allocate_per_cu(), dwarf2_per_bfd::allocate_signatured_type(), allocate_signatured_type_table(), dwarf2_section_info::buffer, complaint, dwarf_read_debug_printf, dwarf2_section_info::get_file_name(), comp_unit_head::get_length_with_initial(), dwarf2_section_info::get_name(), dwarf2_per_objfile::objfile, dwarf2_per_objfile::per_bfd, dwarf2_section_info::read(), read_and_check_comp_unit_head(), dwarf2_per_cu_data::sect_off, sect_offset_str(), comp_unit_head::signature, signatured_type::signature, dwarf2_section_info::size, comp_unit_head::type_cu_offset_in_tu, signatured_type::type_offset_in_tu, and comp_unit_head::version.
Referenced by create_all_units().
|
static |
Definition at line 3933 of file read.c.
References comp_unit_head::abbrev_sect_off, dwarf2_cu::addr_base, die_info::addr_base(), attributes, dwarf2_section_info::buffer, dwarf2_cu::comp_unit_obstack, COMPILE, dwarf2_attr(), dwo_unit::dwo_file, dwarf2_cu::dwo_unit, attribute::form, dwarf2_section_info::get_bfd_owner(), comp_unit_head::get_length_with_initial(), dwarf2_cu::gnu_ranges_base, die_info::gnu_ranges_base(), dwarf2_cu::header, init_cu_die_reader(), dwarf2_per_cu_data::is_debug_types, dwo_unit::length, attribute::name, dwarf2_per_objfile::objfile, peek_abbrev_code(), dwarf2_cu::per_cu, dwarf2_cu::per_objfile, abbrev_table::read(), dwarf2_section_info::read(), read_and_check_comp_unit_head(), read_toplevel_die(), dwarf2_cu::rnglists_base, die_info::rnglists_base(), comp_unit_head::sect_off, dwo_unit::sect_off, sect_offset_str(), dwo_unit::section, dwarf2_per_cu_data::section, attribute::set_string_noncanonical(), comp_unit_head::signature, signatured_type::signature, TYPE, comp_unit_head::type_cu_offset_in_tu, signatured_type::type_offset_in_section, and dwo_unit::type_offset_in_tu.
Referenced by cutu_reader::cutu_reader(), and cutu_reader::init_tu_and_read_dwo_dies().
Definition at line 7303 of file read.c.
References complaint, attribute::constant_value(), dwarf2_attr(), and attribute::form_is_constant().
Referenced by read_import_statement(), and read_namespace().
|
static |
Definition at line 15871 of file read.c.
References die_info::child, die_reader_specs::cu, die_info::has_children, die_info::parent, read_die_and_siblings_1(), read_full_die_1(), die_info::sibling, and store_in_ref_table().
Referenced by read_die_and_siblings_1().
|
static |
Definition at line 15942 of file read.c.
References die_reader_specs::abfd, dwarf2_section_info::buffer, die_reader_specs::die_section, die_info::dump(), dwarf_die_debug, gdb_printf(), gdb_stdlog, dwarf2_section_info::get_name(), die_info::parent, and read_die_and_siblings_1().
Referenced by load_full_comp_unit(), and read_signatured_type().
|
static |
Definition at line 15905 of file read.c.
References die_info::parent, read_die_and_children(), and die_info::sibling.
Referenced by read_die_and_children(), and read_die_and_siblings().
|
static |
Definition at line 17702 of file read.c.
References complaint, die_reader_specs::cu, die_reader_specs::dwo_file, dwo_file::dwo_name, dwarf2_cu::header, comp_unit_head::offset_size, read_2_bytes(), read_initial_length(), read_str_index(), version, and comp_unit_head::version.
Referenced by read_attribute_reprocess().
Definition at line 13273 of file read.c.
References die_info::attr(), check_typedef(), attribute::constant_value(), die_is_declaration(), die_type(), dwarf2_attr(), dwarf2_flag_true_p(), dwarf2_full_name(), get_DW_AT_signature_type(), type::is_stub(), type::is_unsigned(), dwarf2_cu::lang(), type::length(), maybe_set_alignment(), name, type_allocator::new_type(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, type::set_code(), set_die_type(), type::set_is_declared_class(), type::set_is_stub(), type::set_is_unsigned(), type::set_length(), type::set_name(), type::set_target_type(), set_type_align(), type::target_type(), type, TYPE_RAW_ALIGN, and update_enumeration_type_from_children().
Referenced by process_enumeration_scope(), and read_type_die_1().
Definition at line 7647 of file read.c.
References attribute::as_unsigned(), die_info::attr(), die_info::child, complaint, dwarf2_attr(), dwarf_decode_macros(), find_file_and_directory(), attribute::form_is_unsigned(), file_and_directory::get_name(), get_scope_pc_bounds(), handle_DW_AT_stmt_list(), file_and_directory::intern_comp_dir(), dwarf2_cu::lang(), dwarf2_cu::line_header, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, prepare_one_comp_unit(), process_die(), dwarf2_per_objfile::relocate(), die_info::sibling, dwarf2_cu::start_compunit_symtab(), dwarf2_per_objfile::sym_cu, and die_info::tag.
Referenced by process_die().
|
static |
Definition at line 15971 of file read.c.
References die_info::abbrev, die_reader_specs::abbrev_table, die_reader_specs::abfd, die_info::allocate(), abbrev_info::attrs, die_info::attrs, die_reader_specs::buffer, dwarf2_cu::comp_unit_obstack, die_reader_specs::cu, abbrev_info::has_children, die_info::has_children, abbrev_table::lookup_abbrev(), abbrev_info::num_attrs, die_info::num_attrs, read_attribute(), read_unsigned_leb128(), die_info::sect_off, abbrev_info::tag, and die_info::tag.
Referenced by read_die_and_children(), and read_toplevel_die().
Definition at line 10070 of file read.c.
References dwarf2_cu::addr_type(), objfile::arch(), attribute::as_boolean(), attribute::as_nonnegative(), attr_to_dynamic_prop(), check_ada_pragma_import(), die_info::child, complaint, determine_prefix(), die_specification(), dw2_linkage_name(), dwarf2_attr(), dwarf2_func_is_main_p(), dwarf2_get_pc_bounds(), dwarf2_name(), dwarf2_record_block_ranges(), dwarf2_symbol_mark_computed(), buildsym_compunit::finish_block(), gdbarch_make_symbol_special(), dwarf2_cu::get_builder(), buildsym_compunit::get_file_symbols(), buildsym_compunit::get_local_symbols(), have_complaint(), inherit_abstract_dies(), attribute::is_nonnegative(), dwarf2_cu::lang(), language_cplus, language_d, language_fortran, language_rust, general_symbol_info::linkage_name(), dwarf2_cu::list_in_scope, context_stack::local_using_directives, context_stack::locals, template_symbol::n_template_arguments, name, context_stack::name, new_symbol(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, context_stack::old_blocks, buildsym_compunit::outermost_context_p(), PC_BOUNDS_INVALID, dwarf2_cu::per_objfile, buildsym_compunit::pop_context(), process_die(), dwarf2_cu::processing_has_namespace_info, buildsym_compunit::push_context(), read_lexical_block_scope(), read_type_die(), dwarf2_per_objfile::relocate(), die_info::sect_off, sect_offset_str(), buildsym_compunit::set_local_using_directives(), set_objfile_main_name(), block::set_scope(), die_info::sibling, context_stack::static_link, symbol::subclass, SYMBOL_TEMPLATE, symbol::symtab, die_info::tag, and template_symbol::template_arguments.
Referenced by handle_struct_member_die(), and process_die().
Definition at line 7325 of file read.c.
References add_using_directive(), die_info::child, complaint, determine_prefix(), dwarf2_attr(), dwarf2_name(), dwarf_tag_name(), follow_die_ref_or_sig(), dwarf2_cu::lang(), language_d, language_fortran, dwarf2_per_objfile::objfile, objfile_name(), objfile::objfile_obstack, dwarf2_cu::per_objfile, process_die(), read_decl_line(), die_info::sect_off, sect_offset_str(), die_info::sibling, die_info::tag, and using_directives().
Referenced by process_die().
|
static |
Definition at line 17526 of file read.c.
References read_indirect_string_at_offset(), and comp_unit_head::read_offset().
Referenced by read_attribute_value().
const char * read_indirect_string_at_offset | ( | dwarf2_per_objfile * | per_objfile, |
LONGEST | str_offset ) |
Definition at line 17514 of file read.c.
References dwarf2_per_objfile::objfile, dwarf2_per_objfile::per_bfd, dwarf2_section_info::read_string(), and dwarf2_per_bfd::str.
Referenced by mapped_debug_names::namei_to_name(), and read_indirect_string().
Definition at line 10292 of file read.c.
References die_info::child, dwarf2_get_pc_bounds(), dwarf2_record_block_ranges(), buildsym_compunit::finish_block(), dwarf2_cu::get_builder(), buildsym_compunit::get_local_symbols(), buildsym_compunit::get_local_using_directives(), die_info::in_process, inherit_abstract_dies(), context_stack::local_using_directives, context_stack::locals, context_stack::old_blocks, PC_BOUNDS_INVALID, PC_BOUNDS_NOT_PRESENT, dwarf2_cu::per_objfile, buildsym_compunit::pop_context(), process_die(), buildsym_compunit::push_context(), dwarf2_per_objfile::relocate(), buildsym_compunit::set_local_using_directives(), die_info::sibling, context_stack::start_addr, and die_info::tag.
Referenced by process_die(), and read_func_scope().
|
static |
Definition at line 17034 of file read.c.
References dwarf2_section_info::buffer, cu_debug_loc_section(), dwarf2_cu::header, comp_unit_head::initial_length_size, LOCLIST_HEADER_SIZE32, LOCLIST_HEADER_SIZE64, lookup_loclist_base(), objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), loclists_rnglists_header::offset_entry_count, comp_unit_head::offset_size, dwarf2_cu::per_objfile, read_loclists_rnglists_header(), dwarf2_section_info::section, and dwarf2_section_info::size.
Referenced by read_attribute_reprocess().
|
static |
Definition at line 16985 of file read.c.
References loclists_rnglists_header::addr_size, dwarf2_section_info::buffer, dwarf2_section_info::get_bfd_owner(), loclists_rnglists_header::length, loclists_rnglists_header::offset_entry_count, read_1_byte(), read_2_bytes(), read_4_bytes(), read_initial_length(), loclists_rnglists_header::segment_collector_size, and loclists_rnglists_header::version.
Referenced by read_loclist_index(), and read_rnglist_index().
Definition at line 14185 of file read.c.
References die_info::child, new_symbol(), process_die(), read_type_die(), die_info::sibling, die_info::tag, and type.
Referenced by process_die().
Definition at line 14169 of file read.c.
References dwarf2_name(), dwarf2_cu::lang(), type_allocator::new_type(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, set_die_type(), and type.
Referenced by read_type_die_1().
Definition at line 14122 of file read.c.
References add_using_directive(), die_info::child, determine_prefix(), dwarf2_attr(), type::name(), namespace_name(), new_symbol(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_objfile, process_die(), read_decl_line(), read_type_die(), die_info::sibling, die_info::tag, type, and using_directives().
Referenced by process_die().
Definition at line 14082 of file read.c.
References determine_prefix(), dwarf2_attr(), dwarf2_extension(), dwarf2_cu::lang(), name, namespace_name(), type_allocator::new_type(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_objfile, read_type_die(), set_die_type(), type, and typename_concat().
Referenced by read_type_die_1().
|
static |
Definition at line 17092 of file read.c.
References dwarf2_section_info::buffer, cu_debug_rnglists_section(), dwarf2_cu::dwo_unit, dwarf2_cu::header, comp_unit_head::initial_length_size, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), loclists_rnglists_header::offset_entry_count, comp_unit_head::offset_size, dwarf2_cu::per_objfile, read_4_bytes(), read_8_bytes(), read_loclists_rnglists_header(), RNGLIST_HEADER_SIZE32, RNGLIST_HEADER_SIZE64, dwarf2_cu::rnglists_base, dwarf2_section_info::section, and dwarf2_section_info::size.
Referenced by read_attribute_reprocess().
Definition at line 13881 of file read.c.
References attribute::as_unsigned(), create_set_type(), die_type(), dwarf2_attr(), attribute::form_is_unsigned(), get_die_type(), dwarf2_cu::lang(), maybe_set_alignment(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, set_die_type(), and set_type().
Referenced by read_type_die_1().
|
static |
Definition at line 21080 of file read.c.
References die_info::child, cutu_reader::comp_unit_die, dwarf2_cu::comp_unit_obstack, die_reader_specs::cu, dwarf2_cu::die_hash, dwarf2_cu::dies, cutu_reader::dummy_p, die_info::eq(), dwarf2_per_objfile::get_cu(), comp_unit_head::get_length_without_initial(), die_info::has_children, die_info::hash(), dwarf2_cu::header, cutu_reader::info_ptr, dwarf2_per_cu_data::is_debug_types, cutu_reader::keep(), language_minimal, prepare_one_comp_unit(), read_die_and_siblings(), and dwarf2_per_cu_data::tu_read.
Referenced by follow_die_sig_1(), and load_full_type_unit().
|
static |
Definition at line 17659 of file read.c.
References dwarf2_section_info::buffer, dwarf2_section_info::get_name(), dwarf2_cu::header, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, dwarf2_section_info::read(), comp_unit_head::sect_off, sect_offset_str(), and dwarf2_section_info::size.
Referenced by read_dwo_str_index(), and read_stub_str_index().
Definition at line 12669 of file read.c.
References type::add_dyn_prop(), dwarf2_cu::addr_type(), ALLOCATE_CPLUS_STRUCT_TYPE, die_info::attr(), attr_to_dynamic_prop(), die_info::child, attribute::constant_value(), die_is_declaration(), dwarf2_attr(), dwarf2_full_name(), dwarf2_name(), DYN_PROP_BYTE_SIZE, attribute::form_is_constant(), get_die_type(), get_DW_AT_signature_type(), INIT_CPLUS_SPECIFIC, is_valid_DW_AT_calling_convention_for_type(), dwarf2_cu::lang(), language_cplus, language_d, language_rust, type::length(), maybe_set_alignment(), name, type_allocator::new_type(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, dwarf2_cu::producer, producer_is_icc_lt_14(), producer_is_realview(), type::set_code(), set_descriptive_type(), set_die_type(), type::set_is_declared_class(), type::set_is_stub(), type::set_length(), type::set_name(), type::set_stub_is_supported(), die_info::tag, type, and TYPE_CPLUS_CALLING_CONVENTION.
Referenced by process_structure_scope(), and read_type_die_1().
|
static |
Definition at line 17763 of file read.c.
References dwarf2_cu::header, dwarf2_per_objfile::objfile, objfile_name(), comp_unit_head::offset_size, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, read_str_index(), dwarf2_per_bfd::str, dwarf2_per_bfd::str_offsets, and dwarf2_cu::str_offsets_base.
Referenced by read_attribute_reprocess().
|
static |
Definition at line 15625 of file read.c.
References dwarf2_cu::addr_sized_int_type(), type::code(), die_type(), and type::index_type().
Referenced by quirk_ada_thick_pointer(), and read_subrange_type().
Definition at line 15650 of file read.c.
References dwarf2_cu::addr_sized_int_type(), attr_to_dynamic_prop(), type::bounds(), check_typedef(), complaint, dynamic_prop::const_val(), attribute::constant_value(), create_range_type(), create_range_type_with_stride(), dwarf2_attr(), dwarf2_name(), range_bounds::flag_upper_bound_is_count, attribute::form_is_constant(), get_die_type(), dwarf2_cu::header, range_bounds::high, dynamic_prop::is_constant(), type::is_unsigned(), dwarf2_cu::lang(), language_ada, language_c, language_cplus, language_d, language_fortran, language_m2, language_objc, language_pascal, language_rust, type::length(), maybe_set_alignment(), name, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, read_subrange_index_type(), die_info::sect_off, sect_offset_str(), dynamic_prop::set_const_val(), set_descriptive_type(), set_die_type(), type::set_length(), type::set_name(), dynamic_prop::set_undefined(), and comp_unit_head::version.
Referenced by read_type_die_1().
Definition at line 14629 of file read.c.
References type::alloc_fields(), attribute::as_boolean(), builtin_type(), builtin_type::builtin_void, die_info::child, attribute::constant_value(), die_type(), dwarf2_attr(), dwarf2_name(), type::field(), follow_die_ref(), get_die_type(), field::is_artificial(), is_valid_DW_AT_calling_convention_for_subroutine(), dwarf2_cu::lang(), language_cplus, lookup_function_type(), make_cv_type(), name, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, dwarf2_cu::producer, prototyped_function_p(), set_die_type(), type::set_has_varargs(), field::set_is_artificial(), type::set_is_prototyped(), field::set_type(), die_info::sibling, die_info::tag, type, TYPE_CALLING_CONVENTION, TYPE_CONST, TYPE_NO_RETURN, and TYPE_VOLATILE.
Referenced by read_type_die_1().
Definition at line 14469 of file read.c.
References die_type(), get_die_type(), make_atomic_type(), and set_die_type().
Referenced by read_type_die_1().
Definition at line 14406 of file read.c.
References add_array_cv_type(), type::code(), die_type(), get_die_type(), make_cv_type(), set_die_type(), and TYPE_VOLATILE.
Referenced by read_type_die_1().
Definition at line 14237 of file read.c.
References comp_unit_head::addr_size, objfile::arch(), complaint, attribute::constant_value(), die_type(), dwarf2_attr(), gdbarch_address_class_type_flags(), gdbarch_address_class_type_flags_p(), get_alignment(), get_die_type(), dwarf2_cu::header, type::length(), lookup_pointer_type(), make_type_with_address_space(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, die_info::sect_off, sect_offset_str(), set_die_type(), type::set_length(), set_type_align(), type::target_type(), type, TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL, and TYPE_RAW_ALIGN.
Referenced by read_type_die_1().
|
static |
Definition at line 14313 of file read.c.
References check_typedef(), code, die_containing_type(), die_type(), type::fields(), get_die_type(), type::has_varargs(), dwarf2_cu::lang(), lookup_memberptr_type(), lookup_methodptr_type(), type_allocator::new_type(), new_type(), type::num_fields(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, set_die_type(), smash_to_method_type(), type::target_type(), and type.
Referenced by read_type_die_1().
|
static |
Definition at line 14349 of file read.c.
References comp_unit_head::addr_size, attribute::constant_value(), die_type(), dwarf2_attr(), get_die_type(), dwarf2_cu::header, lookup_reference_type(), maybe_set_alignment(), set_die_type(), type::set_length(), type::target_type(), and type.
Referenced by read_type_die_1().
Definition at line 14451 of file read.c.
References die_type(), get_die_type(), make_restrict_type(), and set_die_type().
Referenced by read_type_die_1().
Definition at line 14490 of file read.c.
References dwarf2_cu::addr_sized_int_type(), objfile::arch(), attr_to_dynamic_prop(), builtin_type::builtin_int, builtin_type(), attribute::constant_value(), create_range_type(), create_static_range_type(), create_string_type(), dwarf2_attr(), attribute::form_is_constant(), type::index_type(), dwarf2_cu::lang(), dwarf2_cu::language_defn, language_string_char_type(), dwarf2_per_objfile::objfile, objfile_int_type(), dwarf2_cu::per_objfile, dynamic_prop::set_const_val(), set_die_type(), and type.
Referenced by read_type_die_1().
Definition at line 14427 of file read.c.
References add_array_cv_type(), type::code(), die_type(), get_die_type(), make_cv_type(), set_die_type(), and TYPE_CONST.
Referenced by read_type_die_1().
|
static |
Definition at line 16021 of file read.c.
References die_reader_specs::abfd, dwarf2_cu::addr_base, attribute::as_unsigned(), dwarf2_section_info::buffer, die_reader_specs::cu, die_reader_specs::die_section, dwarf_die_debug, attribute::form_is_unsigned(), gdb_printf(), gdb_stdlog, dwarf2_section_info::get_name(), dwarf2_cu::loclist_base, read_attribute_reprocess(), read_full_die_1(), dwarf2_cu::rnglists_base, and dwarf2_cu::str_offsets_base.
Referenced by cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), and read_cutu_die_from_dwo().
Definition at line 19798 of file read.c.
References get_die_type(), and read_type_die_1().
Referenced by attr_to_dynamic_prop(), check_ada_pragma_import(), determine_prefix(), dwarf2_add_member_fn(), dwarf2_add_type_defn(), dwarf2_compute_name(), get_DW_AT_signature_type(), get_signatured_type(), lookup_die_type(), process_die(), read_array_type(), read_func_scope(), read_module(), read_namespace(), and read_namespace_type().
Definition at line 19813 of file read.c.
References complaint, dwarf_tag_name(), read_array_type(), read_base_type(), read_enumeration_type(), read_module_type(), read_namespace_type(), read_set_type(), read_structure_type(), read_subrange_type(), read_subroutine_type(), read_tag_atomic_type(), read_tag_const_type(), read_tag_pointer_type(), read_tag_ptr_to_member_type(), read_tag_reference_type(), read_tag_restrict_type(), read_tag_string_type(), read_tag_volatile_type(), read_typedef(), read_unspecified_type(), and die_info::tag.
Referenced by read_type_die().
Definition at line 7845 of file read.c.
References die_info::child, language_minimal, prepare_one_comp_unit(), process_die(), dwarf2_cu::setup_type_unit_groups(), die_info::sibling, and die_info::tag.
Referenced by process_die().
Definition at line 14768 of file read.c.
References objfile::arch(), complaint, copy_type(), die_type(), dwarf2_full_name(), gdbarch_dwarf2_omit_typedef_p(), dwarf2_cu::lang(), name, type_allocator::new_type(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_cu::per_objfile, dwarf2_cu::producer, die_info::sect_off, sect_offset_str(), set_die_type(), type::set_name(), type::set_target_is_stub(), type::set_target_type(), and type::target_type().
Referenced by read_type_die_1().
Definition at line 15846 of file read.c.
References dwarf2_name(), dwarf2_cu::lang(), type_allocator::new_type(), dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, set_die_type(), type::set_is_stub(), type::set_name(), and type.
Referenced by read_type_die_1().
Definition at line 10734 of file read.c.
References dwarf2_per_bfd::abstract_to_concrete, rust_vtable_symbol::concrete_type, dwarf2_attr(), follow_die_ref(), dwarf2_cu::lang(), language_rust, loc, new_symbol(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_per_objfile::per_bfd, dwarf2_cu::per_objfile, rust_containing_type(), die_info::sect_off, symbol::subclass, and SYMBOL_RUST_VTABLE.
Referenced by process_die().
|
static |
Definition at line 13426 of file read.c.
References comp_unit_head::addr_size, attribute::as_block(), dwarf2_attr(), attribute::form_is_block(), gdb_read_uleb128(), dwarf2_cu::header, type::length(), name, field::set_bitsize(), field::set_loc_bitpos(), size, and field::type().
Referenced by quirk_ada_thick_pointer().
|
static |
Definition at line 6281 of file read.c.
References dwarf2_per_objfile::get_symtab(), dwarf2_per_cu_data::imported_symtabs, dwarf2_per_cu_data::imported_symtabs_empty(), dwarf2_per_cu_data::is_debug_types, recursively_compute_inclusions(), and compunit_symtab::user.
Referenced by compute_compunit_symtab_includes(), and recursively_compute_inclusions().
|
static |
Definition at line 3155 of file read.c.
References compunit_symtab::blockvector(), blockvector_contains_pc(), compunit_symtab::includes, and recursively_find_pc_sect_compunit_symtab().
Referenced by dwarf2_base_index_functions::find_pc_sect_compunit_symtab(), and recursively_find_pc_sect_compunit_symtab().
Definition at line 12467 of file read.c.
References type::bounds(), type::code(), copy_type(), range_bounds::high, type::index_type(), dynamic_prop::is_constant(), range_bounds::low, rewrite_array_type(), type::set_bounds(), dynamic_prop::set_const_val(), type::target_type(), and TYPE_ZALLOC.
Referenced by quirk_ada_thick_pointer_struct(), and rewrite_array_type().
Definition at line 10711 of file read.c.
References die_containing_type(), dwarf2_attr(), follow_die_ref(), and attribute::form_is_ref().
Referenced by read_variable().
|
static |
Definition at line 5920 of file read.c.
References general_symbol_info::obstack.
Referenced by quirk_rust_enum().
|
static |
Definition at line 6234 of file read.c.
References dwarf2_cu::lang(), language_rust, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, quirk_rust_enum(), and dwarf2_cu::rust_unions.
Referenced by process_full_comp_unit(), and process_full_type_unit().
|
static |
Definition at line 19666 of file read.c.
References ALLOCATE_GNAT_AUX_TYPE, die_descriptive_type(), and TYPE_DESCRIPTIVE_TYPE.
Referenced by read_array_type(), read_structure_type(), and read_subrange_type().
|
static |
Definition at line 21920 of file read.c.
References type::add_dyn_prop(), dwarf2_cu::addr_sized_int_type(), dwarf2_cu::addr_type(), attr_to_dynamic_prop(), type::code(), complaint, dwarf2_per_objfile::die_type_hash, dwarf2_attr(), DYN_PROP_ALLOCATED, DYN_PROP_ASSOCIATED, DYN_PROP_DATA_LOCATION, DYN_PROP_RANK, HAVE_GNAT_AUX_INFO, INIT_GNAT_SPECIFIC, need_gnat_info(), dwarf2_per_objfile::objfile, objfile::objfile_obstack, dwarf2_cu::per_cu, dwarf2_per_cu_offset_and_type::per_cu, per_cu_offset_and_type_eq(), per_cu_offset_and_type_hash(), dwarf2_cu::per_objfile, die_info::sect_off, dwarf2_per_cu_offset_and_type::sect_off, sect_offset_str(), dwarf2_per_cu_offset_and_type::type, type, xcalloc(), and xfree().
Referenced by add_array_cv_type(), read_array_type(), read_base_type(), read_enumeration_type(), read_module_type(), read_namespace_type(), read_set_type(), read_structure_type(), read_subrange_type(), read_subroutine_type(), read_tag_atomic_type(), read_tag_const_type(), read_tag_pointer_type(), read_tag_ptr_to_member_type(), read_tag_reference_type(), read_tag_restrict_type(), read_tag_string_type(), read_tag_volatile_type(), read_typedef(), and read_unspecified_type().
|
static |
Definition at line 22038 of file read.c.
References gdb_printf().
|
static |
Definition at line 734 of file read.c.
References gdb_printf().
|
static |
Definition at line 5377 of file read.c.
References peek_die_abbrev(), and skip_one_die().
Referenced by cooked_indexer::index_dies(), and skip_one_die().
|
static |
Definition at line 5402 of file read.c.
References die_reader_specs::abfd, comp_unit_head::addr_size, abbrev_info::attrs, die_reader_specs::buffer, die_reader_specs::buffer_end, complaint, die_reader_specs::cu, die_reader_specs::die_section, dwarf_form_name(), attr_abbrev::form, attribute::form, attribute::get_ref_die_offset(), abbrev_info::has_children, dwarf2_cu::header, attr_abbrev::name, abbrev_info::num_attrs, comp_unit_head::offset_size, dwarf2_section_info::overflow_complaint(), read_1_byte(), read_2_bytes(), read_4_bytes(), read_attribute(), read_direct_string(), read_unsigned_leb128(), safe_skip_leb128(), comp_unit_head::sect_off, abbrev_info::sibling_offset, abbrev_info::size_if_constant, skip_children(), and comp_unit_head::version.
Referenced by cooked_indexer::index_dies(), and skip_children().
Definition at line 20422 of file read.c.
References dwarf2_cu::die_hash, and die_info::sect_off.
Referenced by read_die_and_children().
|
static |
Definition at line 16109 of file read.c.
Referenced by cooked_indexer::scan_attributes().
|
static |
Definition at line 9144 of file read.c.
References debug_file_directory, flags, gdb_bfd_open(), gdb_bfd_record_inclusion(), gnutarget, ldirname(), O_BINARY, objfile::obfd, dwarf2_per_objfile::objfile, objfile_name(), openp(), OPF_RETURN_REALPATH, and OPF_SEARCH_IN_PATH.
Referenced by open_dwo_file(), and open_dwp_file().
|
static |
Definition at line 11806 of file read.c.
References die_info::tag.
Referenced by dwarf2_add_type_defn(), and handle_struct_member_die().
|
static |
Definition at line 20178 of file read.c.
References dwarf2_cu::lang(), language_d, language_fortran, MAX_SEP_LEN, prefix, and xmalloc().
Referenced by dwarf2_compute_name(), and read_namespace_type().
Definition at line 20243 of file read.c.
References die_info::child, dwarf2_attr(), objfile::intern(), dwarf2_per_objfile::objfile, die_info::parent, dwarf2_cu::per_objfile, die_info::sibling, and die_info::tag.
Referenced by dwarf2_name().
|
static |
Definition at line 13206 of file read.c.
References die_info::child, type::copy_fields(), dwarf2_attr(), dwarf2_const_value_attr(), dwarf2_name(), dwarf2_physname(), name, type::set_is_flag_enum(), type::set_is_unsigned(), field::set_loc_enumval(), field::set_name(), die_info::sibling, die_info::tag, and value.
Referenced by read_enumeration_type().
|
static |
Definition at line 7289 of file read.c.
References dwarf2_cu::get_builder(), buildsym_compunit::get_global_using_directives(), buildsym_compunit::get_local_using_directives(), dwarf2_cu::lang(), language_ada, and buildsym_compunit::outermost_context_p().
Referenced by add_using_directive(), read_import_statement(), and read_namespace().
Definition at line 15444 of file read.c.
References attribute::as_boolean(), attribute::as_string(), dwarf2_attr(), and die_info::tag.
Referenced by attr_to_dynamic_prop(), and dwarf2_fetch_die_type_sect_off().
|
static |
Definition at line 18852 of file read.c.
References comp_unit_head::addr_size, attribute::as_block(), dummy, dwarf2_symbol_mark_computed(), fixup_symbol_section(), attribute::form_is_block(), dwarf2_cu::has_loclist, dwarf2_cu::header, leb128_size(), LOC_OPTIMIZED_OUT, LOC_STATIC, objfile::obfd, dwarf2_per_objfile::objfile, dwarf2_cu::per_objfile, read_addr_index_from_leb128(), comp_unit_head::read_address(), general_symbol_info::section_index(), objfile::section_offsets, symbol::set_aclass_index(), symbol::set_value_address(), dwarf_block::size, SYMBOL_COMPUTED_OPS, and symbol::value_address().
Referenced by new_symbol(), and read_alias().
|
static |
Definition at line 20681 of file read.c.
References type::length(), and store_unsigned_integer().
Referenced by dwarf2_fetch_constant_bytes().
|
static |
Definition at line 148 of file read.c.
Referenced by add_ada_export_symbol(), and new_symbol().
|
static |
Definition at line 145 of file read.c.
Referenced by add_ada_export_symbol(), and new_symbol().
|
static |
Definition at line 631 of file read.c.
Referenced by dwarf2_add_field(), handle_member_location(), and mips_isa_regsize().
|
static |
Definition at line 123 of file read.c.
Referenced by dwarf2_physname().
const struct dwarf2_debug_sections dwarf2_elf_names |
Definition at line 175 of file read.c.
Referenced by dwarf2_per_bfd::dwarf2_per_bfd(), and locate_dwz_sections().
|
static |
Definition at line 146 of file read.c.
Referenced by dwarf2_symbol_mark_computed().
|
static |
Definition at line 143 of file read.c.
Referenced by dwarf2_const_value(), dwarf2_symbol_mark_computed(), and mark_common_block_symbol_computed().
|
static |
Definition at line 147 of file read.c.
Referenced by dwarf2_symbol_mark_computed().
|
static |
Definition at line 144 of file read.c.
Referenced by dwarf2_symbol_mark_computed().
|
static |
Definition at line 127 of file read.c.
Referenced by dwarf2_has_info(), and get_dwarf2_per_objfile().
|
static |
Definition at line 137 of file read.c.
Referenced by dwarf2_has_info().
|
static |
Definition at line 139 of file read.c.
Referenced by dwarf2_has_info().
|
static |
Definition at line 117 of file read.c.
Referenced by cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), read_die_and_siblings(), and read_toplevel_die().
unsigned int dwarf_line_debug = 0 |
Definition at line 120 of file read.c.
Referenced by line_header::add_file_name(), line_header::add_include_dir(), dwarf_finish_line(), dwarf_record_line_1(), and lnp_state_machine::record_line().
|
static |
Definition at line 732 of file read.c.
Referenced by dwarf2_per_objfile::age_comp_units().
|
static |
Definition at line 102 of file read.c.
Referenced by process_queue().
|
static |
Referenced by dwarf2_locate_common_dwp_sections(), dwarf2_locate_dwo_sections(), dwarf2_locate_v2_dwp_sections(), dwarf2_locate_v5_dwp_sections(), and locate_v1_virtual_dwo_sections().
struct cmd_list_element* set_dwarf_cmdlist |
struct cmd_list_element* show_dwarf_cmdlist |