diff options
author | Greg Clayton <gclayton@apple.com> | 2012-05-31 00:29:20 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-05-31 00:29:20 +0000 |
commit | 76927ee56d60d51a6ce87dee675e349e69d19cb0 (patch) | |
tree | eec75d122af8348057b012659b1e9369affacfe7 /lldb/source | |
parent | ee48633937fb109dc3dd814de1a2d0e40ce52e65 (diff) | |
download | bcm5719-llvm-76927ee56d60d51a6ce87dee675e349e69d19cb0.tar.gz bcm5719-llvm-76927ee56d60d51a6ce87dee675e349e69d19cb0.zip |
<rdar://problem/11562050>
"thread continue" uses zero based thread indexes, not the thread index ID.
Also fixed "thread until" if it uses the -t option.
llvm-svn: 157724
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 7ecf74057e8..b2e4c97cd55 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -678,7 +678,7 @@ public: result.AppendMessage ("Resuming thread "); for (idx=0; idx<num_threads; ++idx) { - Thread *thread = process->GetThreadList().GetThreadAtIndex(idx).get(); + Thread *thread = process->GetThreadList().FindThreadByIndexID(idx).get(); if (find(resume_thread_indexes.begin(), resume_thread_indexes.end(), idx) != resume_thread_indexes.end()) { result.AppendMessageWithFormat ("%u ", idx); @@ -704,7 +704,7 @@ public: // Set the actions that the threads should each take when resuming for (idx=0; idx<num_threads; ++idx) { - Thread *thread = process->GetThreadList().GetThreadAtIndex(idx).get(); + Thread *thread = process->GetThreadList().FindThreadByIndexID(idx).get(); if (thread == current_thread) { result.AppendMessageWithFormat ("Resuming thread 0x%4.4llx in process %llu\n", thread->GetID(), process->GetID()); @@ -937,7 +937,7 @@ public: } else { - thread = process->GetThreadList().GetThreadAtIndex(m_options.m_thread_idx).get(); + thread = process->GetThreadList().FindThreadByIndexID(m_options.m_thread_idx).get(); } if (thread == NULL) |