[PATCH] D93441: [DebugInfo] Fix crash with -fdebug-info-for-profiling and split dwarf
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 19:47:43 PST 2020
rupprecht added a comment.
This now "fixes" the dwarf 5 crash I originally went down this rabbit hole for, but I'd like feedback on if it's actually the correct fix (e.g. I'm not generating bogus debug info here :) )
================
Comment at: llvm/test/DebugInfo/X86/debug-info-for-profiling-crash.ll:26-40
+;; Note: .debug_info.dwo has the same basic structure as .debug_info
+
+; CHECK: .debug_info.dwo contents:
+; CHECK: DW_TAG_compile_unit
+; CHECK: DW_TAG_structure_type
+; CHECK: DW_TAG_subprogram
+; CHECK: DW_AT_linkage_name ("_ZN1b1dIiEEvT_")
----------------
rupprecht wrote:
> dblaikie wrote:
> > I'd probably skip this bit - if anything, maybe a comparison with -gmlt -fdebug-info-for-profiling would be a more Apples to Apples take (the split-dwarf-inlining is meant to, roughly, give the same experience as -gmlt in the object file).
> Removed.
>
> I do still need the `; CHECK: .debug_info.dwo contents:`line, because otherwise the section above may match the .debug_info.dwo section. (Hmm, I guess dwarfdump can probably filter on just a single section instead...)
I didn't find a dwarfdump option to do that, so I left in the `; CHECK: .debug_info.dwo contents:` with a comment on why.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93441/new/
https://reviews.llvm.org/D93441
More information about the llvm-commits
mailing list