[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 21:22:37 PST 2025


================
@@ -125,6 +125,13 @@ class DITypeRefArray {
   iterator end() const { return N ? iterator(N->op_end()) : iterator(); }
 };
 
+/// DWARF-like extension attribute for setting short backtrace debuginfo.
+enum class ShortBacktraceAttr {
+  SkipFrame = 0,
+  StartShortBacktrace = 1,
+  EndShortBacktrace = 2,
----------------
DianQK wrote:

Could you add some documents? I'm not clear why `StartShortBacktrace` and `EndShortBacktrace` cannot be replaced by `SkipFrame`? IIUC, we can add `SkipFrame` annotation to all frames/functions that between `StartShortBacktrace` and `EndShortBacktrace`.

https://github.com/llvm/llvm-project/pull/123683


More information about the llvm-commits mailing list