On Wed, Sep 06, 2006 at 04:23:58PM -0700, Ron McCall wrote:
> I found in the readelf dump of the .debug_info section
> that the corresponding DW_TAG_typedef entry had no
> DW_AT_type attribute (which usually links to a
> DW_TAG_base_type entry).  It seems that gcc does not
> emit a DW_TAG_base_type entry for void.  Is that
> intentional?

Yes, this is the convention we use.

> In this program there are only DW_TAG_pointer_type
> entries linking to this DW_TAG_typedef entry.  Without
> the typedef, I would have expected (perhaps naively)
> that the DW_TAG_pointer_type would link to a
> DW_TAG_base_type for void (in the case of a void *
> pointer type).  Is that not the case?

Void isn't a base type.  The DWARF 3 standard way to represent this is
DW_TAG_unspecified_type.

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to