[Lldb-commits] [lldb] [lldb] Prepare UnwindPlans for discontinuous functions (PR #127661)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 18 08:21:46 PST 2025


================
@@ -477,19 +474,15 @@ class UnwindPlan {
   uint32_t GetReturnAddressRegister() { return m_return_addr_register; }
 
   uint32_t GetInitialCFARegister() const {
-    if (m_row_list.empty())
-      return LLDB_INVALID_REGNUM;
-    return m_row_list.front()->GetCFAValue().GetRegisterNumber();
+    if (auto it = m_rows.find(0); it != m_rows.end())
+      return it->second->GetCFAValue().GetRegisterNumber();
+    return LLDB_INVALID_REGNUM;
   }
 
   // This UnwindPlan may not be valid at every address of the function span.
   // For instance, a FastUnwindPlan will not be valid at the prologue setup
   // instructions - only in the body of the function.
-  void SetPlanValidAddressRange(const AddressRange &range);
-
-  const AddressRange &GetAddressRange() const {
----------------
labath wrote:

Unused fn.

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


More information about the lldb-commits mailing list