[llvm-branch-commits] [llvm] [DLCov] Origin-Tracking: Enable collecting and symbolizing stack traces (PR #143591)
Stephen Tozer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jun 12 04:02:25 PDT 2025
================
@@ -507,6 +507,21 @@ static int dl_iterate_phdr_cb(dl_phdr_info *info, size_t size, void *arg) {
return 0;
}
+#if LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING
+#if !defined(HAVE_BACKTRACE)
+#error DebugLoc origin-tracking currently requires `backtrace()`.
+#endif
----------------
SLTozer wrote:
Possibly, I'll look into it - though if possible I'd prefer to replace the use of `backtrace()` with in-program stack traversal, which would require `-fno-omit-frame-pointer` (I'm not sure how you'd check that in CMake either) but would be significantly faster than making the lib call, so if it turns out to be non-trivial (e.g. if there's some ordering issue in the CMake config) then it may not be worth it.
https://github.com/llvm/llvm-project/pull/143591
More information about the llvm-branch-commits
mailing list