summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-25 19:38:34 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-25 19:38:34 +0000
commitbbfa68b0901d93683b7c14789e628ed800727fb9 (patch)
treef6ca3110dc08035a54fdab836a8531a64143f0da /lldb/source/Interpreter/CommandInterpreter.cpp
parent1b7f49c2d6072f3e1432877a5e78ca946845bd2c (diff)
downloadbcm5719-llvm-bbfa68b0901d93683b7c14789e628ed800727fb9.tar.gz
bcm5719-llvm-bbfa68b0901d93683b7c14789e628ed800727fb9.zip
Make ThreadList::GetSelectedThread() select and return the 0th thread if there's no
currently selected thread. And update the call sites accordingly. llvm-svn: 138577
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index f403d04cff7..42024725780 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2230,13 +2230,6 @@ CommandInterpreter::UpdateExecutionContext (ExecutionContext *override_context)
if (m_exe_ctx.process && m_exe_ctx.process->IsAlive() && !m_exe_ctx.process->IsRunning())
{
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().SetSelectedThreadByID(m_exe_ctx.thread->GetID());
- }
if (m_exe_ctx.thread)
{
m_exe_ctx.frame = m_exe_ctx.thread->GetSelectedFrame().get();
OpenPOWER on IntegriCloud