[Lldb-commits] [lldb] [lldb] Make StackID call Fix{Code, Data} pointers (PR #152796)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 11 07:32:42 PDT 2025
================
@@ -71,7 +72,7 @@ StackFrame::StackFrame(const ThreadSP &thread_sp, user_id_t frame_idx,
// recursive functions properly aren't confused with one another on a history
// stack.
if (IsHistorical() && !m_cfa_is_valid) {
- m_id.SetCFA(m_frame_index);
+ m_id.SetCFA(m_frame_index, thread_sp->GetProcess().get());
----------------
felipepiovezan wrote:
Good question. I actually started with a reference, but realized that I was not able to prove we can always dereference the process here. AFAICT all calls to this constructor come from StackFrameList code, and there the _thread_ is always non-null.
But the thread itself only contains a weak pointer to the process
https://github.com/llvm/llvm-project/pull/152796
More information about the lldb-commits
mailing list