[Lldb-commits] [lldb] r175794 - Fixed a case where a stack frame could lose track
scallanan at apple.com
Thu Feb 21 12:54:33 PST 2013
Date: Thu Feb 21 14:54:33 2013
New Revision: 175794
Fixed a case where a stack frame could lose track
of its own target.
--- lldb/trunk/source/Target/StackFrame.cpp (original)
+++ lldb/trunk/source/Target/StackFrame.cpp Thu Feb 21 14:54:33 2013
@@ -452,7 +452,12 @@ StackFrame::GetSymbolContext (uint32_t r
// function, block, line entry or symbol, so we can safely call
// ResolveSymbolContextForAddress with our symbol context member m_sc.
+ // FIXME This call erases m_sc.target_sp and will never restore it. Back it up.
+ TargetSP target_sp = m_sc.target_sp;
resolved |= m_sc.target_sp->GetImages().ResolveSymbolContextForAddress (lookup_addr, resolve_scope, m_sc);
+ m_sc.target_sp = target_sp;
// Update our internal flags so we remember what we have tried to locate so
More information about the lldb-commits