Lines Matching refs:attr
38 __libdw_formptr (Dwarf_Attribute *attr, int sec_index, in __libdw_formptr() argument
42 if (attr == NULL) in __libdw_formptr()
45 const Elf_Data *d = attr->cu->dbg->sectiondata[sec_index]; in __libdw_formptr()
53 if (attr->form == DW_FORM_sec_offset) in __libdw_formptr()
55 if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg, in __libdw_formptr()
56 cu_sec_idx (attr->cu), attr->valp, in __libdw_formptr()
57 attr->cu->offset_size, &offset, sec_index, 0)) in __libdw_formptr()
60 else if (attr->cu->version > 3) in __libdw_formptr()
63 switch (attr->form) in __libdw_formptr()
67 if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg, in __libdw_formptr()
68 cu_sec_idx (attr->cu), in __libdw_formptr()
69 attr->valp, in __libdw_formptr()
70 attr->form == DW_FORM_data4 ? 4 : 8, in __libdw_formptr()
76 if (INTUSE(dwarf_formudata) (attr, &offset)) in __libdw_formptr()
97 dwarf_formudata (attr, return_uval) in dwarf_formudata() argument
98 Dwarf_Attribute *attr; in dwarf_formudata()
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,