[PATCH 2/2] Support AArch64 architecture

Petr Machata pmachata at redhat.com
Thu Nov 14 11:24:03 UTC 2013


Petr Machata <pmachata at redhat.com> writes:

> +      if ((i = member_is_fp (ftypedie, sizep, countp)) == 0)
> +	{
> +	  *countp = tot_size / *sizep;
> +	  return 0;
> +	}
> +
> +      return 1;

This should be return i;

> +    }
> +
> +  /* Find first DW_TAG_member and determine its type.  */
> +  Dwarf_Die member;
> +  if ((i = dwarf_child (ftypedie, &member) != 0))
> +    return i;
> +
> +  if ((i = skip_until (&member, DW_TAG_member)) != 0)
> +    return i;
> +
> +  *countp = 0;
> +  if ((i = member_is_fp (&member, sizep, countp)) != 0)
> +    return i;
> +
> +  while ((i = dwarf_siblingof (&member, &member)) == 0
> +	 && (i = skip_until (&member, DW_TAG_member)) == 0)
> +    {
> +      Dwarf_Word size, count;
> +      if ((i = member_is_fp (&member, &size, &count)) != 0)
> +	return i;
> +
> +      if (*sizep != size)
> +	return 1;
> +
> +      *countp += count;
> +    }
> +

This should probably have a comment.

/* At this point we already have one FP member, which means FTYPEDIE is
   an HFA.  So either return 0, or propagate error.  */

> +  return i < 0 ? i : 0;
> +}

I'll wait for other people's comments before the next submission.

Thanks,
PM


More information about the elfutils-devel mailing list