[Lldb-commits] [lldb] r157724 - /lldb/trunk/source/Commands/CommandObjectThread.cpp
Greg Clayton
gclayton at apple.com
Wed May 30 17:29:20 PDT 2012
Author: gclayton
Date: Wed May 30 19:29:20 2012
New Revision: 157724
URL: http://llvm.org/viewvc/llvm-project?rev=157724&view=rev
Log:
<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.
Modified:
lldb/trunk/source/Commands/CommandObjectThread.cpp
Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=157724&r1=157723&r2=157724&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Wed May 30 19:29:20 2012
@@ -678,7 +678,7 @@
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 @@
// 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 @@
}
else
{
- thread = process->GetThreadList().GetThreadAtIndex(m_options.m_thread_idx).get();
+ thread = process->GetThreadList().FindThreadByIndexID(m_options.m_thread_idx).get();
}
if (thread == NULL)
More information about the lldb-commits
mailing list