[Lldb-commits] [lldb] r113657 - /lldb/trunk/source/Core/Debugger.cpp
Jim Ingham
jingham at apple.com
Fri Sep 10 16:06:30 PDT 2010
Author: jingham
Date: Fri Sep 10 18:06:30 2010
New Revision: 113657
URL: http://llvm.org/viewvc/llvm-project?rev=113657&view=rev
Log:
When the debugger updates its symbol context, if no thread or frame are selected select the first thread's 0th frame.
Modified:
lldb/trunk/source/Core/Debugger.cpp
Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=113657&r1=113656&r2=113657&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Fri Sep 10 18:06:30 2010
@@ -503,12 +503,22 @@
{
m_exe_ctx.thread = m_exe_ctx.process->GetThreadList().GetSelectedThread().get();
if (m_exe_ctx.thread == NULL)
+ {
m_exe_ctx.thread = m_exe_ctx.process->GetThreadList().GetThreadAtIndex(0).get();
+ // If we didn't have a selected thread, select one here.
+ if (m_exe_ctx.thread != NULL)
+ m_exe_ctx.process->GetThreadList().SetSelectedThreadByIndexID(0);
+ }
if (m_exe_ctx.thread)
{
m_exe_ctx.frame = m_exe_ctx.thread->GetSelectedFrame().get();
if (m_exe_ctx.frame == NULL)
+ {
m_exe_ctx.frame = m_exe_ctx.thread->GetStackFrameAtIndex (0).get();
+ // If we didn't have a selected frame select one here.
+ if (m_exe_ctx.frame != NULL)
+ m_exe_ctx.thread->SetSelectedFrame(m_exe_ctx.frame);
+ }
}
}
}
More information about the lldb-commits
mailing list