Lines Matching defs:result
72 dwarf_getlocation_attr (Dwarf_Attribute *attr, const Dwarf_Op *op, Dwarf_Attribute *result)
80 result->code = DW_AT_const_value;
81 result->form = DW_FORM_block;
82 result->valp = (unsigned char *) (uintptr_t) op->number2;
83 result->cu = attr_form_cu (attr);
88 result->code = DW_AT_location;
89 result->form = DW_FORM_exprloc;
90 result->valp = (unsigned char *) (uintptr_t) op->number2;
91 result->cu = attr_form_cu (attr);
96 result->code = DW_AT_const_value;
97 result->form = DW_FORM_block1;
98 result->valp = (unsigned char *) (uintptr_t) op->number2;
99 result->cu = attr_form_cu (attr);
104 result->code = DW_AT_const_value;
106 result->form = DW_FORM_data4;
108 result->form = DW_FORM_data8;
109 result->valp = addr_valp (attr->cu, op->number);
110 if (result->valp == NULL)
112 result->cu = attr->cu->dbg->fake_addr_cu;
117 result->code = DW_AT_low_pc;
118 result->form = DW_FORM_addr;
119 result->valp = addr_valp (attr->cu, op->number);
120 if (result->valp == NULL)
122 result->cu = attr->cu->dbg->fake_addr_cu;
132 if (INTUSE(dwarf_attr) (&die, DW_AT_location, result) == NULL)
134 __libdw_empty_loc_attr (result);
147 if (INTUSE(dwarf_attr) (&die, DW_AT_location, result) == NULL
148 && INTUSE(dwarf_attr) (&die, DW_AT_const_value, result) == NULL)
150 __libdw_empty_loc_attr (result);