[Dwarf-discuss] Overlapping PC ranges

Tim Haines thaines.astro@gmail.com
Sat Sep 23 03:43:10 GMT 2023


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dwarfstd.org/pipermail/dwarf-discuss/attachments/20230922/9516ae5f/attachment.htm>


More information about the Dwarf-discuss mailing list