[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 03:58:48 PDT 2026
================
@@ -138,7 +138,7 @@ class UnwindAssemblyInstEmulation : public lldb_private::UnwindAssembly {
lldb_private::AddressRange *m_range_ptr;
lldb_private::UnwindPlan *m_unwind_plan_ptr;
UnwindState m_state;
- uint64_t m_initial_cfa;
+ lldb::addr_t m_initial_cfa;
----------------
s-barannikov wrote:
Yes. `addr_t` is a target address, and CFA is target address. `m_initial_cfa` here isn't a *real* address (since we're emulating), but it has the same properties (that is, bitwidth) as a real target address.
Occasionally we use `addr_t` for other things, either because we don't have a better typedef or by mistake, but in 95% cases it is a target address.
https://github.com/llvm/llvm-project/pull/192752
More information about the lldb-commits
mailing list