[Lldb-commits] [lldb] [lldb] Fix variable access in old SBFrames after inferior function calls (PR #178823)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 30 16:47:23 PST 2026
================
@@ -1410,8 +1416,22 @@ class Thread : public std::enable_shared_from_this<Thread>,
/// The Thread backed by this thread, if any.
lldb::ThreadWP m_backed_thread;
- /// The Scripted Frame Providers for this thread.
- llvm::SmallVector<lldb::SyntheticFrameProviderSP, 0> m_frame_providers;
+ /// Map from frame list ID to its frame provider.
+ /// Cleared in ClearStackFrames(), repopulated in GetStackFrameList().
+ llvm::SmallDenseMap<uint64_t, lldb::SyntheticFrameProviderSP, 4>
+ m_frame_providers;
----------------
adrian-prantl wrote:
Similar as below, this is waisting 4 elements of inline storage in every thread, I would probably just make this a DenseMap, unless you are sure about 4 being the perfect size.
https://github.com/llvm/llvm-project/pull/178823
More information about the lldb-commits
mailing list