Re: [Dwarf-discuss] Proposal/clarification: "inherited" subrange bounds

2024-07-26 Thread David Blaikie via Dwarf-discuss
If I'm following correctly, Alexandre - you're suggesting a situation where an instance of a type, when it appears within a packed struct, may become smaller than it would otherwise be? (usually in C that's not the case - packing only changes the alignment of instances of the type - which may chang

Re: [Dwarf-discuss] Proposal/clarification: "inherited" subrange bounds

2024-07-26 Thread Alexandre Oliva via Dwarf-discuss
On Jun 15, 2024, Ron Brender wrote: >> Because of the different sizes, this requires two distinct types to be >> defined in debug info. > There is no basis for this claim AFAIK. DW_TAG_subrange_type may have a DW_AT_(byte|bit)_size attribute "if the amount of storage allocated to hold each elem

Re: [Dwarf-discuss] Dwarf language code for P4 langauge

2024-07-26 Thread Robinson, Paul via Dwarf-discuss
It’s not written down anywhere (probably should be) but in order to assign a new language code, we need some additional information. Specifically, we need a default lower bound for arrays (as seen at https://dwarfstd.org/languages.html ) and for the upcoming DWARF v6, a versioning scheme (as see