Re: Patch to handle DWARF2 DW_FORM_indirect

Elena Zannoni
2001-11-21T23:15:30Z

> + info_ptr = read_attribute_value (attr, form, abfd, info_ptr, cu_header);
> + break;
> + case DW_FORM_strp:
> default:
> error ("Dwarf Error: Cannot handle %s in DWARF reader.",
> - dwarf_form_name (abbrev->form));
> + dwarf_form_name (form));
> }
> return info_ptr;
> }
>
> +/* Read an attribute described by an abbreviated attribute. */
> +
> +static char *
> +read_attribute (struct attribute *attr, struct attr_abbrev *abbrev,
> + bfd *abfd, char *info_ptr,
> + const struct comp_unit_head *cu_header)
> +{
> + attr->name = abbrev->name;
> + return read_attribute_value (attr, abbrev->form, abfd, info_ptr, cu_header);