diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-08-25 19:38:34 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-25 19:38:34 +0000 |
commit | bbfa68b0901d93683b7c14789e628ed800727fb9 (patch) | |
tree | f6ca3110dc08035a54fdab836a8531a64143f0da /lldb/source/Core/Debugger.cpp | |
parent | 1b7f49c2d6072f3e1432877a5e78ca946845bd2c (diff) | |
download | bcm5719-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/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 875466c3e0c..c361dfc5e5c 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -346,8 +346,6 @@ Debugger::GetSelectedExecutionContext () if (exe_ctx.process && exe_ctx.process->IsRunning() == false) { exe_ctx.thread = exe_ctx.process->GetThreadList().GetSelectedThread().get(); - if (exe_ctx.thread == NULL) - exe_ctx.thread = exe_ctx.process->GetThreadList().GetThreadAtIndex(0).get(); if (exe_ctx.thread) { exe_ctx.frame = exe_ctx.thread->GetSelectedFrame().get(); |