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/Target/Process.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/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 3119c32f785..8f57d1cded0 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1138,8 +1138,6 @@ Process::LoadImage (const FileSpec &image_spec, Error &error) if (error.Success()) { ThreadSP thread_sp(GetThreadList ().GetSelectedThread()); - if (thread_sp == NULL) - thread_sp = GetThreadList ().GetThreadAtIndex(0, true); if (thread_sp) { @@ -1205,8 +1203,6 @@ Process::UnloadImage (uint32_t image_token) if (error.Success()) { ThreadSP thread_sp(GetThreadList ().GetSelectedThread()); - if (thread_sp == NULL) - thread_sp = GetThreadList ().GetThreadAtIndex(0, true); if (thread_sp) { |