[Dwarf-Discuss] Question about DW_TAG_inlined_subroutine tags

Greg Clayton clayborg@gmail.com
Thu Jul 30 19:00:07 GMT 2020


The LTO in clang creates some really interesting DWARF... One of the latest things I discovered is DW_TAG_inlined_subroutine tags that are not contained within a DW_TAG_subprogram. I am guessing the compiler/linker wanted to outline an inlined function and tried its best to move the DWARF and didn't end up changing the tag from DW_TAG_inlined_subroutine to DW_TAG_subprogram.

I was thinking of adding code to "llvm-dwarfdump --verify" to detect this issue, but wanted to check with the DWARF list first to make sure this would be considered an error. So I am looking for an answer to:

Is it ok for DW_TAG_inlined_subroutine with high and low PC values to appear on their own, not enclosed in a DW_TAG_subprogram?

Greg Clayton



More information about the Dwarf-discuss mailing list