Lines Matching refs:vr_die
57 static int convert_variable_location(Dwarf_Die *vr_die, Dwarf_Addr addr, in convert_variable_location() argument
72 if (dwarf_attr(vr_die, DW_AT_external, &attr) != NULL) in convert_variable_location()
76 if (dwarf_attr(vr_die, DW_AT_const_value, &attr) && in convert_variable_location()
90 if (dwarf_attr(vr_die, DW_AT_location, &attr) == NULL) in convert_variable_location()
98 (dwarf_tag(vr_die) == DW_TAG_variable)) { in convert_variable_location()
101 dwarf_tag(vr_die) != DW_TAG_formal_parameter) { in convert_variable_location()
129 ret = strlen(dwarf_diename(vr_die)); in convert_variable_location()
133 snprintf(tvar->value, ret + 2, "@%s", dwarf_diename(vr_die)); in convert_variable_location()
189 static int convert_variable_type(Dwarf_Die *vr_die, in convert_variable_type() argument
211 bsize = dwarf_bitsize(vr_die); in convert_variable_type()
214 boffs = dwarf_bitoffset(vr_die); in convert_variable_type()
215 total = dwarf_bytesize(vr_die); in convert_variable_type()
223 if (die_get_real_type(vr_die, &type) == NULL) { in convert_variable_type()
225 dwarf_diename(vr_die)); in convert_variable_type()
230 dwarf_diename(vr_die), dwarf_diename(&type)); in convert_variable_type()
239 dwarf_diename(vr_die), dwarf_diename(&type)); in convert_variable_type()
262 dwarf_diename(vr_die)); in convert_variable_type()
308 static int convert_variable_fields(Dwarf_Die *vr_die, const char *varname, in convert_variable_fields() argument
319 if (die_get_real_type(vr_die, &type) == NULL) { in convert_variable_fields()
390 if (field->ref && dwarf_diename(vr_die)) { in convert_variable_fields()
445 static int convert_variable(Dwarf_Die *vr_die, struct probe_finder *pf) in convert_variable() argument
451 dwarf_diename(vr_die)); in convert_variable()
453 ret = convert_variable_location(vr_die, pf->addr, pf->fb_ops, in convert_variable()
463 ret = convert_variable_fields(vr_die, pf->pvar->var, in convert_variable()
466 vr_die = &die_mem; in convert_variable()
469 ret = convert_variable_type(vr_die, pf->tvar, pf->pvar->type, in convert_variable()
478 Dwarf_Die vr_die; in find_variable() local
502 if (!die_find_variable_at(sc_die, pf->pvar->var, pf->addr, &vr_die)) { in find_variable()
505 0, &vr_die)) { in find_variable()
514 ret = convert_variable(&vr_die, pf); in find_variable()