Expose base type encodings
RReverser opened this issue · 5 comments
Base type names differ between different languages, but they're described fairly precisely via DW_AT_encoding
+ DW_AT_endianity
+ bit size and offset.
It would be great if ddbug
would add ability to print these layout details of base types both in API and CLI.
Sure we can do that. I hadn't been interested in them because they don't change for a given language/platform.
Added basic support in ab1518e (endianity and some encodings only). Do you have examples of languages that use bit size and offset, or other encodings?
Not sure about bit size, but byte size is definitely a thing as e.g. int
vs short int
are both encoded with DW_ATE_signed
but differ only in DW_AT_byte_size
value.
(That was quick btw!)
Ah yeah byte size is done too, all types have that. It already used to display base types, but I filtered them out, so I only had to add support for the new attributes.