[Dwarf-Discuss] DW_AT_accessibility default

Jakub Jelinek jakub at redhat.com
Thu Jul 29 04:07:44 PDT 2010


Hi!

For DW_TAG_inheritance, DW_TAG_member and DW_TAG_subprogram
the standard says that if the DW_AT_accessibility attribute is missing,
private accessibility is assumed for class entries and public for
interfaces, structs or unions.

Does the same apply to all the other DIEs that may have DW_AT_accessibility
attribute?

What exactly is meant by in class?  DIEs that are immediate children
of DW_TAG_class_type (resp. DW_TAG_{structure,interface,union}_type)?
E.g. if
DW_TAG_class_type
  DW_TAG_structure_type
    ! DW_AT_accessibility is missing, does that imply DW_ACCESS_private
    ! here?

Should for DIE parents other than DW_TAG_{structure,interface,union,class}_type
DW_AT_accessibility be not considered meaningful?

	Jakub



More information about the Dwarf-Discuss mailing list