Hello,
I asked our Ada gurus at AdaCore for some confirmation and here are
Tuck's answers (who says "Hi Ron!" :-)):
> Ada in particular defines enumeration types in a way such that they have,
> in effect, a definite underlying base integer type. This affects some
> details of type conversion betw
It is my recollection that in DWARF the size attributes on enumeration
types are intended to be optional in the presence of a type attribute which
itself has a size. That is, the "may" is deliberate.
Ada in particular defines enumeration types in a way such that they have,
in effect, a definite un
Hi Mark,
I looked at TotalView's DWARF reader, and omitting DW_AT_byte_size from
DW_TAG_enumeration_type would require code changes. TotalView treats enums as
self-contained types with a discrete byte length; in other words, enum types
are not based on some other kind of type like "int" types.
Hi,
I was adding the underlying type to an enumeration in a DWARF producer
(GCC) and wanted to drop the DW_AT_byte_size in case we have such an
underlying DW_AT_type. Since it looks redundant in that case. The
DW_AT_byte_size of the DW_TAG_enumeration should be equal to the size of
the underlying