Skip to content
  • Ben Gamari's avatar
    nativeGen/dwarf: Fix procedure end addresses · 0a7e592c
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously the `.debug_aranges` and `.debug_info` (DIE) DWARF
    information would claim that procedures (represented with a
    `DW_TAG_subprogram` DIE) would only span the range covered by their entry
    block. This omitted all of the continuation blocks (represented by
    `DW_TAG_lexical_block` DIEs), confusing `perf`. Fix this by introducing
    a end-of-procedure label and using this as the `DW_AT_high_pc` of
    procedure `DW_TAG_subprogram` DIEs
    
    Fixes #17605.
    0a7e592c