Lines Matching refs:die
300 def find_die_var_base_type(compile_unit, die, is_const): argument
308 if die.tag == 'DW_TAG_base_type':
309 return die.attributes['DW_AT_name'].value.decode('ascii'), is_const
312 if not 'DW_AT_type' in die.attributes:
315 if die.tag == 'DW_TAG_const_type':
320 type_attr = die.attributes['DW_AT_type']
331 def is_die_var_const_char(compile_unit, die): argument
335 var_type, is_const = find_die_var_base_type(compile_unit, die, False)
357 for die in compile_unit.iter_DIEs():
360 if die.tag == 'DW_TAG_variable':
361 if ('DW_AT_type' in die.attributes
362 and 'DW_AT_location' in die.attributes
363 and is_die_var_const_char(compile_unit, die)
367 loc_attr = die.attributes['DW_AT_location']
368 if loc_parser.attribute_has_location(loc_attr, die.cu['version']):
369 loc = loc_parser.parse_from_attribute(loc_attr, die.cu['version'], die)
380 'name': die.attributes['DW_AT_name'].value,
382 'die': die