diff options
author | Jim Ingham <jingham@apple.com> | 2017-05-25 02:24:18 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2017-05-25 02:24:18 +0000 |
commit | d2a7e8538b9c6de35759c28c3e3df8419680d08e (patch) | |
tree | 83d65feb15c137d6e20e1fe61b643b001b664632 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | da8f9b5b1b76289e16653d39583ca86f8f3f742e (diff) | |
download | llvm-d2a7e8538b9c6de35759c28c3e3df8419680d08e.zip llvm-d2a7e8538b9c6de35759c28c3e3df8419680d08e.tar.gz llvm-d2a7e8538b9c6de35759c28c3e3df8419680d08e.tar.bz2 |
Fix the warning when you pass -c to step/next/si/ni.
During some cleanup the test for whether the thread plan
accepted an iteration count was reversed, so we give a
warning when it will actually work, and don't when it won't.
<rdar://problem/32379280>
llvm-svn: 303832
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 6b0f1b4..b585ef9 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -649,7 +649,7 @@ protected: new_plan_sp->SetOkayToDiscard(false); if (m_options.m_step_count > 1) { - if (new_plan_sp->SetIterationCount(m_options.m_step_count)) { + if (!new_plan_sp->SetIterationCount(m_options.m_step_count)) { result.AppendWarning( "step operation does not support iteration count."); } |