[Lldb-commits] [lldb] [lldb] Handle non-zero offsets from SP when computing initial CFA value (PR #192752)
Sergei Barannikov via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 20 04:36:30 PDT 2026
================
@@ -486,7 +486,9 @@ class UnwindPlan {
const UnwindPlan::Row *GetRowAtIndex(uint32_t idx) const;
- const UnwindPlan::Row *GetLastRow() const;
+ const Row *GetFirstRow() const;
----------------
s-barannikov wrote:
I agree `GetRowForFunctionOffset(0)` would be more precise. I considered using it, but thought we could simply take the first (and only) row. The `UnwindPlan` here is generated by `CreateFunctionEntryUnwind()` method of `EmulateInstruction` plugin; it should always contain exactly one row.
https://github.com/llvm/llvm-project/pull/192752
More information about the lldb-commits
mailing list