Lines Matching refs:die

821 static int dwarf2_flag_true_p (struct die_info *die, unsigned name,
826 static struct die_info *die_specification (struct die_info *die,
862 static char *determine_prefix (struct die_info *die, struct dwarf2_cu *);
871 static void read_subrange_type (struct die_info *die, struct dwarf2_cu *cu);
903 static char *determine_class_name (struct die_info *die, struct dwarf2_cu *cu);
907 static void read_namespace (struct die_info *die, struct dwarf2_cu *);
909 static const char *namespace_name (struct die_info *die,
958 static char *dwarf2_name (struct die_info *die, struct dwarf2_cu *);
960 static struct die_info *dwarf2_extension (struct die_info *die,
2619 process_die (struct die_info *die, struct dwarf2_cu *cu) in process_die() argument
2621 switch (die->tag) in process_die()
2626 read_file_scope (die, cu); in process_die()
2629 read_subroutine_type (die, cu); in process_die()
2630 read_func_scope (die, cu); in process_die()
2640 read_lexical_block_scope (die, cu); in process_die()
2645 read_structure_type (die, cu); in process_die()
2646 process_structure_scope (die, cu); in process_die()
2649 read_enumeration_type (die, cu); in process_die()
2650 process_enumeration_scope (die, cu); in process_die()
2657 read_subroutine_type (die, cu); in process_die()
2660 read_array_type (die, cu); in process_die()
2663 read_tag_pointer_type (die, cu); in process_die()
2666 read_tag_ptr_to_member_type (die, cu); in process_die()
2669 read_tag_reference_type (die, cu); in process_die()
2672 read_tag_string_type (die, cu); in process_die()
2677 read_base_type (die, cu); in process_die()
2680 new_symbol (die, die->type, cu); in process_die()
2683 read_subrange_type (die, cu); in process_die()
2686 new_symbol (die, die->type, cu); in process_die()
2689 read_common_block (die, cu); in process_die()
2695 read_namespace (die, cu); in process_die()
2706 gdb_assert (die->child == NULL); in process_die()
2709 new_symbol (die, NULL, cu); in process_die()
2721 read_file_scope (struct die_info *die, struct dwarf2_cu *cu) in read_file_scope() argument
2738 get_scope_pc_bounds (die, &lowpc, &highpc, cu); in read_file_scope()
2747 attr = dwarf2_attr (die, DW_AT_name, cu); in read_file_scope()
2752 attr = dwarf2_attr (die, DW_AT_comp_dir, cu); in read_file_scope()
2767 attr = dwarf2_attr (die, DW_AT_language, cu); in read_file_scope()
2773 attr = dwarf2_attr (die, DW_AT_producer, cu); in read_file_scope()
2797 if (die->child != NULL) in read_file_scope()
2799 child_die = die->child; in read_file_scope()
2808 attr = dwarf2_attr (die, DW_AT_stmt_list, cu); in read_file_scope()
2825 attr = dwarf2_attr (die, DW_AT_macro_info, cu); in read_file_scope()
2858 read_func_scope (struct die_info *die, struct dwarf2_cu *cu) in read_func_scope() argument
2873 name = dwarf2_linkage_name (die, cu); in read_func_scope()
2877 if (name == NULL || !dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu)) in read_func_scope()
2883 struct die_info *spec_die = die_specification (die, cu); in read_func_scope()
2922 new->name = new_symbol (die, die->type, cu); in read_func_scope()
2926 attr = dwarf2_attr (die, DW_AT_frame_base, cu); in read_func_scope()
2941 if (die->child != NULL) in read_func_scope()
2943 child_die = die->child; in read_func_scope()
2977 read_lexical_block_scope (struct die_info *die, struct dwarf2_cu *cu) in read_lexical_block_scope() argument
2992 if (!dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu)) in read_lexical_block_scope()
2998 if (die->child != NULL) in read_lexical_block_scope()
3000 child_die = die->child; in read_lexical_block_scope()
3021 dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc, in dwarf2_get_pc_bounds() argument
3032 attr = dwarf2_attr (die, DW_AT_high_pc, cu); in dwarf2_get_pc_bounds()
3036 attr = dwarf2_attr (die, DW_AT_low_pc, cu); in dwarf2_get_pc_bounds()
3048 attr = dwarf2_attr (die, DW_AT_ranges, cu); in dwarf2_get_pc_bounds()
3181 get_scope_pc_bounds (struct die_info *die, in get_scope_pc_bounds() argument
3189 if (dwarf2_get_pc_bounds (die, &current_low, &current_high, cu)) in get_scope_pc_bounds()
3196 struct die_info *child = die->child; in get_scope_pc_bounds()
3241 dwarf2_add_field (struct field_info *fip, struct die_info *die, in dwarf2_add_field() argument
3261 if (die->tag != DW_TAG_inheritance) in dwarf2_add_field()
3267 attr = dwarf2_attr (die, DW_AT_accessibility, cu); in dwarf2_add_field()
3272 attr = dwarf2_attr (die, DW_AT_virtuality, cu); in dwarf2_add_field()
3278 if (die->tag == DW_TAG_member && ! die_is_declaration (die, cu)) in dwarf2_add_field()
3283 fp->type = die_type (die, cu); in dwarf2_add_field()
3288 attr = dwarf2_attr (die, DW_AT_bit_size, cu); in dwarf2_add_field()
3299 attr = dwarf2_attr (die, DW_AT_data_member_location, cu); in dwarf2_add_field()
3307 attr = dwarf2_attr (die, DW_AT_bit_offset, cu); in dwarf2_add_field()
3330 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in dwarf2_add_field()
3352 attr = dwarf2_attr (die, DW_AT_name, cu); in dwarf2_add_field()
3362 if (dwarf2_attr (die, DW_AT_artificial, cu)) in dwarf2_add_field()
3368 else if (die->tag == DW_TAG_member || die->tag == DW_TAG_variable) in dwarf2_add_field()
3380 attr = dwarf2_attr (die, DW_AT_name, cu); in dwarf2_add_field()
3387 physname = dwarf2_linkage_name (die, cu); in dwarf2_add_field()
3392 FIELD_TYPE (*fp) = die_type (die, cu); in dwarf2_add_field()
3395 else if (die->tag == DW_TAG_inheritance) in dwarf2_add_field()
3398 attr = dwarf2_attr (die, DW_AT_data_member_location, cu); in dwarf2_add_field()
3404 FIELD_TYPE (*fp) = die_type (die, cu); in dwarf2_add_field()
3500 dwarf2_add_member_fn (struct field_info *fip, struct die_info *die, in dwarf2_add_member_fn() argument
3513 attr = dwarf2_attr (die, DW_AT_name, cu); in dwarf2_add_member_fn()
3520 physname = dwarf2_linkage_name (die, cu); in dwarf2_add_member_fn()
3565 if (die->type && TYPE_CODE (die->type) == TYPE_CODE_FUNC) in dwarf2_add_member_fn()
3567 int nparams = TYPE_NFIELDS (die->type); in dwarf2_add_member_fn()
3572 TYPE_TARGET_TYPE (die->type), in dwarf2_add_member_fn()
3573 TYPE_FIELDS (die->type), in dwarf2_add_member_fn()
3574 TYPE_NFIELDS (die->type), in dwarf2_add_member_fn()
3575 TYPE_VARARGS (die->type)); in dwarf2_add_member_fn()
3583 if (nparams == 0 || TYPE_FIELD_ARTIFICIAL (die->type, 0) == 0) in dwarf2_add_member_fn()
3591 if (dwarf2_attr (die, DW_AT_containing_type, cu) != NULL) in dwarf2_add_member_fn()
3592 fnp->fcontext = die_containing_type (die, cu); in dwarf2_add_member_fn()
3598 attr = dwarf2_attr (die, DW_AT_accessibility, cu); in dwarf2_add_member_fn()
3613 attr = dwarf2_attr (die, DW_AT_artificial, cu); in dwarf2_add_member_fn()
3618 attr = dwarf2_attr (die, DW_AT_vtable_elem_location, cu); in dwarf2_add_member_fn()
3709 read_structure_type (struct die_info *die, struct dwarf2_cu *cu) in read_structure_type() argument
3717 if (die->type) in read_structure_type()
3723 attr = dwarf2_attr (die, DW_AT_name, cu); in read_structure_type()
3729 char *new_prefix = determine_class_name (die, cu); in read_structure_type()
3744 if (die->tag == DW_TAG_structure_type) in read_structure_type()
3748 else if (die->tag == DW_TAG_union_type) in read_structure_type()
3759 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in read_structure_type()
3769 if (die_is_declaration (die, cu)) in read_structure_type()
3775 set_die_type (die, type, cu); in read_structure_type()
3777 if (die->child != NULL && ! die_is_declaration (die, cu)) in read_structure_type()
3785 child_die = die->child; in read_structure_type()
3824 if (dwarf2_attr (die, DW_AT_containing_type, cu) != NULL) in read_structure_type()
3826 struct type *t = die_containing_type (die, cu); in read_structure_type()
3870 process_structure_scope (struct die_info *die, struct dwarf2_cu *cu) in process_structure_scope() argument
3874 struct die_info *child_die = die->child; in process_structure_scope()
3876 if (TYPE_TAG_NAME (die->type) != NULL) in process_structure_scope()
3877 processing_current_prefix = TYPE_TAG_NAME (die->type); in process_structure_scope()
3900 if (die->child != NULL && ! die_is_declaration (die, cu)) in process_structure_scope()
3901 new_symbol (die, die->type, cu); in process_structure_scope()
3910 read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu) in read_enumeration_type() argument
3916 if (die->type) in read_enumeration_type()
3922 attr = dwarf2_attr (die, DW_AT_name, cu); in read_enumeration_type()
3941 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in read_enumeration_type()
3951 set_die_type (die, type, cu); in read_enumeration_type()
3959 determine_class_name (struct die_info *die, struct dwarf2_cu *cu) in determine_class_name() argument
3962 struct die_info *spec_die = die_specification (die, cu); in determine_class_name()
3982 for (child = die->child; in determine_class_name()
4001 const char *name = dwarf2_name (die, cu); in determine_class_name()
4020 process_enumeration_scope (struct die_info *die, struct dwarf2_cu *cu) in process_enumeration_scope() argument
4032 if (die->child != NULL) in process_enumeration_scope()
4034 child_die = die->child; in process_enumeration_scope()
4046 sym = new_symbol (child_die, die->type, cu); in process_enumeration_scope()
4073 TYPE_NFIELDS (die->type) = num_fields; in process_enumeration_scope()
4074 TYPE_FIELDS (die->type) = (struct field *) in process_enumeration_scope()
4075 TYPE_ALLOC (die->type, sizeof (struct field) * num_fields); in process_enumeration_scope()
4076 memcpy (TYPE_FIELDS (die->type), fields, in process_enumeration_scope()
4081 TYPE_FLAGS (die->type) |= TYPE_FLAG_UNSIGNED; in process_enumeration_scope()
4084 new_symbol (die, die->type, cu); in process_enumeration_scope()
4092 read_array_type (struct die_info *die, struct dwarf2_cu *cu) in read_array_type() argument
4104 if (die->type) in read_array_type()
4109 element_type = die_type (die, cu); in read_array_type()
4113 if (die->child == NULL) in read_array_type()
4117 set_die_type (die, create_array_type (NULL, element_type, range_type), in read_array_type()
4123 child_die = die->child; in read_array_type()
4153 if (read_array_order (die, cu) == DW_ORD_col_major) in read_array_type()
4171 attr = dwarf2_attr (die, DW_AT_GNU_vector, cu); in read_array_type()
4178 set_die_type (die, type, cu); in read_array_type()
4182 read_array_order (struct die_info *die, struct dwarf2_cu *cu) in read_array_order() argument
4186 attr = dwarf2_attr (die, DW_AT_ordering, cu); in read_array_order()
4219 read_common_block (struct die_info *die, struct dwarf2_cu *cu) in read_common_block() argument
4226 attr = dwarf2_attr (die, DW_AT_location, cu); in read_common_block()
4244 if (die->child != NULL) in read_common_block()
4246 child_die = die->child; in read_common_block()
4265 read_namespace (struct die_info *die, struct dwarf2_cu *cu) in read_namespace() argument
4274 name = namespace_name (die, &is_anonymous, cu); in read_namespace()
4293 if (dwarf2_extension (die, cu) == NULL) in read_namespace()
4304 new_symbol (die, type, cu); in read_namespace()
4305 set_die_type (die, type, cu); in read_namespace()
4313 if (die->child != NULL) in read_namespace()
4315 struct die_info *child_die = die->child; in read_namespace()
4333 namespace_name (struct die_info *die, int *is_anonymous, struct dwarf2_cu *cu) in namespace_name() argument
4340 for (current_die = die; in namespace_name()
4342 current_die = dwarf2_extension (die, cu)) in namespace_name()
4362 read_tag_pointer_type (struct die_info *die, struct dwarf2_cu *cu) in read_tag_pointer_type() argument
4370 if (die->type) in read_tag_pointer_type()
4375 type = lookup_pointer_type (die_type (die, cu)); in read_tag_pointer_type()
4377 attr_byte_size = dwarf2_attr (die, DW_AT_byte_size, cu); in read_tag_pointer_type()
4383 attr_address_class = dwarf2_attr (die, DW_AT_address_class, cu); in read_tag_pointer_type()
4412 set_die_type (die, type, cu); in read_tag_pointer_type()
4419 read_tag_ptr_to_member_type (struct die_info *die, struct dwarf2_cu *cu) in read_tag_ptr_to_member_type() argument
4426 if (die->type) in read_tag_ptr_to_member_type()
4432 to_type = die_type (die, cu); in read_tag_ptr_to_member_type()
4433 domain = die_containing_type (die, cu); in read_tag_ptr_to_member_type()
4436 set_die_type (die, type, cu); in read_tag_ptr_to_member_type()
4443 read_tag_reference_type (struct die_info *die, struct dwarf2_cu *cu) in read_tag_reference_type() argument
4449 if (die->type) in read_tag_reference_type()
4454 type = lookup_reference_type (die_type (die, cu)); in read_tag_reference_type()
4455 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in read_tag_reference_type()
4464 set_die_type (die, type, cu); in read_tag_reference_type()
4468 read_tag_const_type (struct die_info *die, struct dwarf2_cu *cu) in read_tag_const_type() argument
4472 if (die->type) in read_tag_const_type()
4477 base_type = die_type (die, cu); in read_tag_const_type()
4478 set_die_type (die, make_cv_type (1, TYPE_VOLATILE (base_type), base_type, 0), in read_tag_const_type()
4483 read_tag_volatile_type (struct die_info *die, struct dwarf2_cu *cu) in read_tag_volatile_type() argument
4487 if (die->type) in read_tag_volatile_type()
4492 base_type = die_type (die, cu); in read_tag_volatile_type()
4493 set_die_type (die, make_cv_type (TYPE_CONST (base_type), 1, base_type, 0), in read_tag_volatile_type()
4503 read_tag_string_type (struct die_info *die, struct dwarf2_cu *cu) in read_tag_string_type() argument
4510 if (die->type) in read_tag_string_type()
4515 attr = dwarf2_attr (die, DW_AT_string_length, cu); in read_tag_string_type()
4523 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in read_tag_string_type()
4546 set_die_type (die, type, cu); in read_tag_string_type()
4561 read_subroutine_type (struct die_info *die, struct dwarf2_cu *cu) in read_subroutine_type() argument
4568 if (die->type) in read_subroutine_type()
4572 type = die_type (die, cu); in read_subroutine_type()
4576 attr = dwarf2_attr (die, DW_AT_prototyped, cu); in read_subroutine_type()
4582 if (die->child != NULL) in read_subroutine_type()
4591 child_die = die->child; in read_subroutine_type()
4606 child_die = die->child; in read_subroutine_type()
4628 set_die_type (die, ftype, cu); in read_subroutine_type()
4632 read_typedef (struct die_info *die, struct dwarf2_cu *cu) in read_typedef() argument
4638 if (!die->type) in read_typedef()
4640 attr = dwarf2_attr (die, DW_AT_name, cu); in read_typedef()
4645 set_die_type (die, init_type (TYPE_CODE_TYPEDEF, 0, in read_typedef()
4648 TYPE_TARGET_TYPE (die->type) = die_type (die, cu); in read_typedef()
4656 read_base_type (struct die_info *die, struct dwarf2_cu *cu) in read_base_type() argument
4664 if (die->type) in read_base_type()
4669 attr = dwarf2_attr (die, DW_AT_encoding, cu); in read_base_type()
4674 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in read_base_type()
4679 attr = dwarf2_attr (die, DW_AT_name, cu); in read_base_type()
4735 set_die_type (die, type, cu); in read_base_type()
4741 read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) in read_subrange_type() argument
4750 if (die->type) in read_subrange_type()
4753 base_type = die_type (die, cu); in read_subrange_type()
4773 attr = dwarf2_attr (die, DW_AT_lower_bound, cu); in read_subrange_type()
4777 attr = dwarf2_attr (die, DW_AT_upper_bound, cu); in read_subrange_type()
4801 attr = dwarf2_attr (die, DW_AT_name, cu); in read_subrange_type()
4805 attr = dwarf2_attr (die, DW_AT_byte_size, cu); in read_subrange_type()
4809 set_die_type (die, range_type, cu); in read_subrange_type()
4833 struct die_info *die; in read_die_and_children() local
4837 cur_ptr = read_full_die (&die, abfd, info_ptr, cu, &has_children); in read_die_and_children()
4838 store_in_ref_table (die->offset, die, cu); in read_die_and_children()
4842 die->child = read_die_and_siblings (cur_ptr, abfd, cu, in read_die_and_children()
4843 new_info_ptr, die); in read_die_and_children()
4847 die->child = NULL; in read_die_and_children()
4851 die->sibling = NULL; in read_die_and_children()
4852 die->parent = parent; in read_die_and_children()
4853 return die; in read_die_and_children()
4874 struct die_info *die in read_die_and_siblings() local
4879 first_die = die; in read_die_and_siblings()
4883 last_sibling->sibling = die; in read_die_and_siblings()
4886 if (die->tag == 0) in read_die_and_siblings()
4893 last_sibling = die; in read_die_and_siblings()
4903 struct die_info *die, *next; in free_die_list() local
4905 die = dies; in free_die_list()
4906 while (die) in free_die_list()
4908 if (die->child != NULL) in free_die_list()
4909 free_die_list (die->child); in free_die_list()
4910 next = die->sibling; in free_die_list()
4911 xfree (die->attrs); in free_die_list()
4912 xfree (die); in free_die_list()
4913 die = next; in free_die_list()
5530 struct die_info *die; in read_full_die() local
5537 die = dwarf_alloc_die (); in read_full_die()
5538 die->tag = 0; in read_full_die()
5539 die->abbrev = abbrev_number; in read_full_die()
5540 die->type = NULL; in read_full_die()
5541 *diep = die; in read_full_die()
5553 die = dwarf_alloc_die (); in read_full_die()
5554 die->offset = offset; in read_full_die()
5555 die->tag = abbrev->tag; in read_full_die()
5556 die->abbrev = abbrev_number; in read_full_die()
5557 die->type = NULL; in read_full_die()
5559 die->num_attrs = abbrev->num_attrs; in read_full_die()
5560 die->attrs = (struct attribute *) in read_full_die()
5561 xmalloc (die->num_attrs * sizeof (struct attribute)); in read_full_die()
5565 info_ptr = read_attribute (&die->attrs[i], &abbrev->attrs[i], in read_full_die()
5571 if (die->attrs[i].form == DW_FORM_ref_addr in read_full_die()
5572 && (DW_ADDR (&die->attrs[i]) < cu->header.offset in read_full_die()
5573 || (DW_ADDR (&die->attrs[i]) in read_full_die()
5577 per_cu = dwarf2_find_containing_comp_unit (DW_ADDR (&die->attrs[i]), in read_full_die()
5601 *diep = die; in read_full_die()
6112 dwarf2_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *cu) in dwarf2_attr() argument
6117 for (i = 0; i < die->num_attrs; ++i) in dwarf2_attr()
6119 if (die->attrs[i].name == name) in dwarf2_attr()
6120 return &die->attrs[i]; in dwarf2_attr()
6121 if (die->attrs[i].name == DW_AT_specification in dwarf2_attr()
6122 || die->attrs[i].name == DW_AT_abstract_origin) in dwarf2_attr()
6123 spec = &die->attrs[i]; in dwarf2_attr()
6127 return dwarf2_attr (follow_die_ref (die, spec, cu), name, cu); in dwarf2_attr()
6137 dwarf2_flag_true_p (struct die_info *die, unsigned name, struct dwarf2_cu *cu) in dwarf2_flag_true_p() argument
6139 struct attribute *attr = dwarf2_attr (die, name, cu); in dwarf2_flag_true_p()
6145 die_is_declaration (struct die_info *die, struct dwarf2_cu *cu) in die_is_declaration() argument
6154 return (dwarf2_flag_true_p (die, DW_AT_declaration, cu) in die_is_declaration()
6155 && dwarf2_attr (die, DW_AT_specification, cu) == NULL); in die_is_declaration()
6162 die_specification (struct die_info *die, struct dwarf2_cu *cu) in die_specification() argument
6164 struct attribute *spec_attr = dwarf2_attr (die, DW_AT_specification, cu); in die_specification()
6169 return follow_die_ref (die, spec_attr, cu); in die_specification()
6733 new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu) in new_symbol() argument
6744 if (die->tag != DW_TAG_namespace) in new_symbol()
6745 name = dwarf2_linkage_name (die, cu); in new_symbol()
6767 SYMBOL_TYPE (sym) = die_type (die, cu); in new_symbol()
6768 attr = dwarf2_attr (die, DW_AT_decl_line, cu); in new_symbol()
6773 switch (die->tag) in new_symbol()
6776 attr = dwarf2_attr (die, DW_AT_low_pc, cu); in new_symbol()
6787 attr2 = dwarf2_attr (die, DW_AT_external, cu); in new_symbol()
6806 attr = dwarf2_attr (die, DW_AT_const_value, cu); in new_symbol()
6810 attr2 = dwarf2_attr (die, DW_AT_external, cu); in new_symbol()
6817 attr = dwarf2_attr (die, DW_AT_location, cu); in new_symbol()
6821 attr2 = dwarf2_attr (die, DW_AT_external, cu); in new_symbol()
6835 attr2 = dwarf2_attr (die, DW_AT_external, cu); in new_symbol()
6837 && dwarf2_attr (die, DW_AT_type, cu) != NULL) in new_symbol()
6845 attr = dwarf2_attr (die, DW_AT_location, cu); in new_symbol()
6853 attr = dwarf2_attr (die, DW_AT_const_value, cu); in new_symbol()
6959 attr = dwarf2_attr (die, DW_AT_const_value, cu); in new_symbol()
6988 dwarf_tag_name (die->tag)); in new_symbol()
7101 die_type (struct die_info *die, struct dwarf2_cu *cu) in die_type() argument
7107 type_attr = dwarf2_attr (die, DW_AT_type, cu); in die_type()
7114 type_die = follow_die_ref (die, type_attr, cu); in die_type()
7130 die_containing_type (struct die_info *die, struct dwarf2_cu *cu) in die_containing_type() argument
7136 type_attr = dwarf2_attr (die, DW_AT_containing_type, cu); in die_containing_type()
7139 type_die = follow_die_ref (die, type_attr, cu); in die_containing_type()
7153 tag_type_to_type (struct die_info *die, struct dwarf2_cu *cu) in tag_type_to_type() argument
7155 if (die->type) in tag_type_to_type()
7157 return die->type; in tag_type_to_type()
7161 read_type_die (die, cu); in tag_type_to_type()
7162 if (!die->type) in tag_type_to_type()
7164 dump_die (die); in tag_type_to_type()
7168 return die->type; in tag_type_to_type()
7173 read_type_die (struct die_info *die, struct dwarf2_cu *cu) in read_type_die() argument
7175 char *prefix = determine_prefix (die, cu); in read_type_die()
7180 switch (die->tag) in read_type_die()
7185 read_structure_type (die, cu); in read_type_die()
7188 read_enumeration_type (die, cu); in read_type_die()
7192 read_subroutine_type (die, cu); in read_type_die()
7195 read_array_type (die, cu); in read_type_die()
7198 read_tag_pointer_type (die, cu); in read_type_die()
7201 read_tag_ptr_to_member_type (die, cu); in read_type_die()
7204 read_tag_reference_type (die, cu); in read_type_die()
7207 read_tag_const_type (die, cu); in read_type_die()
7210 read_tag_volatile_type (die, cu); in read_type_die()
7213 read_tag_string_type (die, cu); in read_type_die()
7216 read_typedef (die, cu); in read_type_die()
7219 read_subrange_type (die, cu); in read_type_die()
7222 read_base_type (die, cu); in read_type_die()
7226 dwarf_tag_name (die->tag)); in read_type_die()
7242 determine_prefix (struct die_info *die, struct dwarf2_cu *cu) in determine_prefix() argument
7250 parent = die->parent; in determine_prefix()
7464 sibling_die (struct die_info *die) in sibling_die() argument
7466 return die->sibling; in sibling_die()
7472 dwarf2_linkage_name (struct die_info *die, struct dwarf2_cu *cu) in dwarf2_linkage_name() argument
7476 attr = dwarf2_attr (die, DW_AT_MIPS_linkage_name, cu); in dwarf2_linkage_name()
7479 attr = dwarf2_attr (die, DW_AT_name, cu); in dwarf2_linkage_name()
7488 dwarf2_name (struct die_info *die, struct dwarf2_cu *cu) in dwarf2_name() argument
7492 attr = dwarf2_attr (die, DW_AT_name, cu); in dwarf2_name()
7502 dwarf2_extension (struct die_info *die, struct dwarf2_cu *cu) in dwarf2_extension() argument
7506 attr = dwarf2_attr (die, DW_AT_extension, cu); in dwarf2_extension()
7510 return follow_die_ref (die, attr, cu); in dwarf2_extension()
8319 dump_die (struct die_info *die) in dump_die() argument
8324 dwarf_tag_name (die->tag), die->abbrev, die->offset); in dump_die()
8326 dwarf_bool_name (die->child != NULL)); in dump_die()
8329 for (i = 0; i < die->num_attrs; ++i) in dump_die()
8332 dwarf_attr_name (die->attrs[i].name), in dump_die()
8333 dwarf_form_name (die->attrs[i].form)); in dump_die()
8334 switch (die->attrs[i].form) in dump_die()
8339 print_address_numeric (DW_ADDR (&die->attrs[i]), 1, gdb_stderr); in dump_die()
8345 fprintf_unfiltered (gdb_stderr, "block: size %d", DW_BLOCK (&die->attrs[i])->size); in dump_die()
8351 (long) (DW_ADDR (&die->attrs[i]))); in dump_die()
8359 fprintf_unfiltered (gdb_stderr, "constant: %ld", DW_UNSND (&die->attrs[i])); in dump_die()
8364 DW_STRING (&die->attrs[i]) in dump_die()
8365 ? DW_STRING (&die->attrs[i]) : ""); in dump_die()
8368 if (DW_UNSND (&die->attrs[i])) in dump_die()
8380 die->attrs[i].form); in dump_die()
8387 dump_die_list (struct die_info *die) in dump_die_list() argument
8389 while (die) in dump_die_list()
8391 dump_die (die); in dump_die_list()
8392 if (die->child != NULL) in dump_die_list()
8393 dump_die_list (die->child); in dump_die_list()
8394 if (die->sibling != NULL) in dump_die_list()
8395 dump_die_list (die->sibling); in dump_die_list()
8400 store_in_ref_table (unsigned int offset, struct die_info *die, in store_in_ref_table() argument
8408 die->next_ref = old; in store_in_ref_table()
8409 cu->die_ref_table[h] = die; in store_in_ref_table()
8461 struct die_info *die; in follow_die_ref() local
8481 die = target_cu->die_ref_table[h]; in follow_die_ref()
8482 while (die) in follow_die_ref()
8484 if (die->offset == offset) in follow_die_ref()
8485 return die; in follow_die_ref()
8486 die = die->next_ref; in follow_die_ref()
8770 struct die_info *die; in dwarf_alloc_die() local
8772 die = (struct die_info *) xmalloc (sizeof (struct die_info)); in dwarf_alloc_die()
8773 memset (die, 0, sizeof (struct die_info)); in dwarf_alloc_die()
8774 return (die); in dwarf_alloc_die()
9445 set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) in set_die_type() argument
9449 die->type = type; in set_die_type()
9464 ofs.offset = die->offset; in set_die_type()
9476 get_die_type (struct die_info *die, htab_t type_hash) in get_die_type() argument
9480 ofs.offset = die->offset; in get_die_type()
9494 struct die_info *die; in reset_die_and_siblings_types() local
9499 for (die = start_die; die != NULL; die = die->sibling) in reset_die_and_siblings_types()
9501 die->type = get_die_type (die, cu->per_cu->type_hash); in reset_die_and_siblings_types()
9502 if (die->child != NULL) in reset_die_and_siblings_types()
9503 reset_die_and_siblings_types (die->child, cu); in reset_die_and_siblings_types()