[Lldb-commits] [lldb] r141160 - /lldb/trunk/source/Target/StackFrameList.cpp
Greg Clayton
gclayton at apple.com
Tue Oct 4 20:14:31 PDT 2011
Author: gclayton
Date: Tue Oct 4 22:14:31 2011
New Revision: 141160
URL: http://llvm.org/viewvc/llvm-project?rev=141160&view=rev
Log:
Fixed a crasher where the m_frames collection was being accessed without
using the mutex.
Modified:
lldb/trunk/source/Target/StackFrameList.cpp
Modified: lldb/trunk/source/Target/StackFrameList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StackFrameList.cpp?rev=141160&r1=141159&r2=141160&view=diff
==============================================================================
--- lldb/trunk/source/Target/StackFrameList.cpp (original)
+++ lldb/trunk/source/Target/StackFrameList.cpp Tue Oct 4 22:14:31 2011
@@ -395,12 +395,13 @@
{
if (m_thread.GetID() == m_thread.GetProcess().GetThreadList().GetSelectedThread()->GetID())
{
- StackFrameSP frame_sp = m_frames[m_selected_frame_idx];
+ StackFrameSP frame_sp (GetFrameAtIndex (GetSelectedFrameIndex()));
if (frame_sp)
{
- SymbolContext sc = frame_sp->GetSymbolContext(eSymbolContextEverything);
+ SymbolContext sc = frame_sp->GetSymbolContext(eSymbolContextLineEntry);
if (sc.line_entry.file)
- m_thread.GetProcess().GetTarget().GetSourceManager().SetDefaultFileAndLine (sc.line_entry.file, sc.line_entry.line);
+ m_thread.GetProcess().GetTarget().GetSourceManager().SetDefaultFileAndLine (sc.line_entry.file,
+ sc.line_entry.line);
}
}
}
More information about the lldb-commits
mailing list