DWARF Standard


HOME
SPECIFICATIONS
FAQ
ISSUES



161130.2 Mark Wielaard Add DW_AT_encoding to the attribute list for DW_TAG_enumeration_type Improvement Rejected


Section Appendix A, pg 255
It is allowed to have a DW_AT_byte_size on a DW_TAG_enumeration_type, 
but not DW_AT_encoding. To describe both size and encoding one needs to 
use a DW_AT_type pointing to a base type that represents the "underlying type".

For languages where enumerations don't have an underlying type, or for 
strongly typed enums it is easier to attach the encoding directly than 
adding and indirection to a base type.

Add DW_AT_encoding to the attribute list for DW_TAG_enumeration_type.

--

Rejected 1/3/2017.
Use DW_AT_type if encoding of base tpe is needed.


All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2007-2017 by DWARF Standards Committee.