================
@@ -1555,12 +1555,12 @@ RegisterContextUnwind::SavedLocationForRegister(
   }
 
   if (unwindplan_regloc.IsSame()) {
-    if (!IsFrameZero() &&
+    if (!m_all_registers_available &&
         (regnum.GetAsKind(eRegisterKindGeneric) == LLDB_REGNUM_GENERIC_PC ||
----------------
labath wrote:

`pc=<same>` is probably still only valid for real frame zero, so we could make 
the `m_all_registers_available` check `lr`-only.

.. or drop the lr check entirely, since some non-ABI-respecting functions could 
actually preserve the value of lr even if they are not leaf functions.

https://github.com/llvm/llvm-project/pull/91321
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to