summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2017-05-25 02:24:18 +0000
committerJim Ingham <jingham@apple.com>2017-05-25 02:24:18 +0000
commitd2a7e8538b9c6de35759c28c3e3df8419680d08e (patch)
tree83d65feb15c137d6e20e1fe61b643b001b664632 /lldb/source/Commands/CommandObjectThread.cpp
parentda8f9b5b1b76289e16653d39583ca86f8f3f742e (diff)
downloadbcm5719-llvm-d2a7e8538b9c6de35759c28c3e3df8419680d08e.tar.gz
bcm5719-llvm-d2a7e8538b9c6de35759c28c3e3df8419680d08e.zip
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 6b0f1b455bc..b585ef9ef8a 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.");
}
OpenPOWER on IntegriCloud