ref = dwarf2_get_ref_die_offset (type_attr, cu); type_die = follow_die_ref (ref); if (!type_die) { error ("Dwarf Error: Cannot find referent at offset %d [in module %s]", ref, cu->objfile->name); return NULL; }
type_die = follow_die_ref (die, type_attr, cu);
die_containing_type (struct die_info *die, struct dwarf2_cu *cu){  struct type *type = NULL;  struct attribute *type_attr;  struct die_info *type_die = NULL;  unsigned int ref;  type_attr = dwarf2_attr (die, DW_AT_containing_type, cu);  if (type_attr)    {      ref = dwarf2_get_ref_die_offset (type_attr, cu);      type_die = follow_die_ref (ref);      if (!type_die)	{	  error ("Dwarf Error: Cannot find referent at offset %d [in module %s]", ref, 			  cu->objfile->name);	  return NULL;	}      type = tag_type_to_type (type_die, cu);    }  if (!type)    {      if (type_die)	dump_die (type_die);      error ("Dwarf Error: Problem turning containing type into gdb type [in module %s]", 		      cu->objfile->name);    }  return type;}