diff options
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) { |