[Lldb-commits] [lldb] [lldb] Parse DWARF CFI for discontinuous functions (PR #137006)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 23 08:49:38 PDT 2025
================
@@ -1345,9 +1343,9 @@ RegisterContextUnwind::SavedLocationForRegister(
// value instead of the Return Address register.
// If $pc is not available, fall back to the RA reg.
UnwindPlan::Row::AbstractRegisterLocation scratch;
- if (m_frame_type == eTrapHandlerFrame &&
- active_row->GetRegisterInfo
- (pc_regnum.GetAsKind (unwindplan_registerkind), scratch)) {
+ if (m_frame_type == eTrapHandlerFrame && active_row &&
----------------
labath wrote:
This is a splattering of defensive checks as it's easier to get a null active row now (some places around here are already checking it, but not all of them).
https://github.com/llvm/llvm-project/pull/137006
More information about the lldb-commits
mailing list