Lines Matching refs:attr

38 __libdw_formptr (Dwarf_Attribute *attr, int sec_index,
42 if (attr == NULL)
45 const Elf_Data *d = attr->cu->dbg->sectiondata[sec_index];
53 if (attr->form == DW_FORM_sec_offset)
55 if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg,
56 cu_sec_idx (attr->cu), attr->valp,
57 attr->cu->offset_size, &offset, sec_index, 0))
60 else if (attr->cu->version > 3)
63 switch (attr->form)
67 if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg,
68 cu_sec_idx (attr->cu),
69 attr->valp,
70 attr->form == DW_FORM_data4 ? 4 : 8,
76 if (INTUSE(dwarf_formudata) (attr, &offset))
97 dwarf_formudata (attr, return_uval)
98 Dwarf_Attribute *attr;
101 if (attr == NULL)
104 const unsigned char *datap = attr->valp;
105 const unsigned char *endp = attr->cu->endp;
107 switch (attr->form)
116 *return_uval = *attr->valp;
122 *return_uval = read_2ubyte_unaligned (attr->cu->dbg, attr->valp);
132 if (attr->form == DW_FORM_sec_offset
133 || (attr->cu->version < 4 && attr->code != DW_AT_start_scope))
135 switch (attr->code)
147 if (__libdw_formptr (attr, IDX_debug_loc,
155 if (__libdw_formptr (attr, IDX_debug_macinfo,
163 if (__libdw_formptr (attr, IDX_debug_macro,
172 if (__libdw_formptr (attr, IDX_debug_ranges,
180 if (__libdw_formptr (attr, IDX_debug_line,
188 if (attr->form == DW_FORM_sec_offset)
195 if (__libdw_read_address (attr->cu->dbg, cu_sec_idx (attr->cu),
196 attr->valp,
197 attr->form == DW_FORM_data4 ? 4 : 8,
206 if (__libdw_read_address (attr->cu->dbg, cu_sec_idx (attr->cu),
207 attr->valp,
208 attr->form == DW_FORM_data4 ? 4 : 8,