DWARF5 Section 2.17.3 explicitly states that *Bounded* ranges cannot overlap, but there is no comment about contiguous ranges (DW_AT_{low,high}_pc) or *Base address* range list entries. Is this a case of "the exception that proves the rule"?
For DW_TAG_compile_unit and DW_TAG_type_unit entries, I don't think it would ever make sense for a compiler to emit overlapping PC ranges. Am I lacking imagination here? Was there a corner case in DWARF4 that needed this? For a DW_AT_subprogram entry, it might make sense to have overlapping ranges as it's possible the compiler has outlined the function and created two debug entries: one for the complete function and one for the extracted part. Thanks. - Tim
-- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss