Home | History | Annotate | Download | only in libdwarf

Lines Matching refs:at

36 dwarf_hasform(Dwarf_Attribute at, Dwarf_Half form, Dwarf_Bool *return_hasform,
41 dbg = at != NULL ? at->at_die->die_dbg : NULL;
43 if (at == NULL || return_hasform == NULL) {
48 *return_hasform = (at->at_form == form);
54 dwarf_whatform(Dwarf_Attribute at, Dwarf_Half *return_form, Dwarf_Error *error)
58 dbg = at != NULL ? at->at_die->die_dbg : NULL;
60 if (at == NULL || return_form == NULL) {
65 *return_form = at->at_form;
71 dwarf_whatform_direct(Dwarf_Attribute at, Dwarf_Half *return_form,
76 dbg = at != NULL ? at->at_die->die_dbg : NULL;
78 if (at == NULL || return_form == NULL) {
83 if (at->at_indirect)
86 *return_form = (Dwarf_Half) at->at_form;
92 dwarf_whatattr(Dwarf_Attribute at, Dwarf_Half *return_attr, Dwarf_Error *error)
96 dbg = at != NULL ? at->at_die->die_dbg : NULL;
98 if (at == NULL || return_attr == NULL) {
103 *return_attr = (Dwarf_Half) at->at_attrib;
109 dwarf_formref(Dwarf_Attribute at, Dwarf_Off *return_offset, Dwarf_Error *error)
114 dbg = at != NULL ? at->at_die->die_dbg : NULL;
116 if (at == NULL || return_offset == NULL) {
121 switch (at->at_form) {
127 *return_offset = (Dwarf_Off) at->u[0].u64;
139 dwarf_global_formref(Dwarf_Attribute at, Dwarf_Off *return_offset,
145 dbg = at != NULL ? at->at_die->die_dbg : NULL;
147 if (at == NULL || return_offset == NULL) {
152 switch (at->at_form) {
155 *return_offset = (Dwarf_Off) at->u[0].u64;
163 *return_offset = (Dwarf_Off) at->u[0].u64 +
164 at->at_die->die_cu->cu_offset;
176 dwarf_formaddr(Dwarf_Attribute at, Dwarf_Addr *return_addr, Dwarf_Error *error)
181 dbg = at != NULL ? at->at_die->die_dbg : NULL;
183 if (at == NULL || return_addr == NULL) {
188 if (at->at_form == DW_FORM_addr) {
189 *return_addr = at->u[0].u64;
200 dwarf_formflag(Dwarf_Attribute at, Dwarf_Bool *return_bool, Dwarf_Error *error)
205 dbg = at != NULL ? at->at_die->die_dbg : NULL;
207 if (at == NULL || return_bool == NULL) {
212 if (at->at_form == DW_FORM_flag ||
213 at->at_form == DW_FORM_flag_present) {
214 *return_bool = (Dwarf_Bool) (!!at->u[0].u64);
225 dwarf_formudata(Dwarf_Attribute at, Dwarf_Unsigned *return_uvalue,
231 dbg = at != NULL ? at->at_die->die_dbg : NULL;
233 if (at == NULL || return_uvalue == NULL) {
238 switch (at->at_form) {
244 *return_uvalue = at->u[0].u64;
256 dwarf_formsdata(Dwarf_Attribute at, Dwarf_Signed *return_svalue,
262 dbg = at != NULL ? at->at_die->die_dbg : NULL;
264 if (at == NULL || return_svalue == NULL) {
269 switch (at->at_form) {
271 *return_svalue = (int8_t) at->u[0].s64;
275 *return_svalue = (int16_t) at->u[0].s64;
279 *return_svalue = (int32_t) at->u[0].s64;
284 *return_svalue = at->u[0].s64;
296 dwarf_formblock(Dwarf_Attribute at, Dwarf_Block **return_block,
302 dbg = at != NULL ? at->at_die->die_dbg : NULL;
304 if (at == NULL || return_block == NULL) {
309 switch (at->at_form) {
314 *return_block = &at->at_block;
326 dwarf_formsig8(Dwarf_Attribute at, Dwarf_Sig8 *return_sig8, Dwarf_Error *error)
330 dbg = at != NULL ? at->at_die->die_dbg : NULL;
332 if (at == NULL || return_sig8 == NULL) {
337 if (at->at_form != DW_FORM_ref_sig8) {
342 assert(at->u[0].u64 == 8);
343 memcpy(return_sig8->signature, at->u[1].u8p, at->u[0].u64);
349 dwarf_formexprloc(Dwarf_Attribute at, Dwarf_Unsigned *return_exprlen,
355 dbg = at != NULL ? at->at_die->die_dbg : NULL;
357 if (at == NULL || return_exprlen == NULL || return_expr == NULL) {
362 if (at->at_form != DW_FORM_exprloc) {
367 *return_exprlen = at->u[0].u64;
368 *return_expr = (void *) at->u[1].u8p;
374 dwarf_formstring(Dwarf_Attribute at, char **return_string,
380 dbg = at != NULL ? at->at_die->die_dbg : NULL;
382 if (at == NULL || return_string == NULL) {
387 switch (at->at_form) {
389 *return_string = (char *) at->u[0].s;
394 *return_string = (char *) at->u[1].s;
455 * to also look at the attribute number.