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
This commit is contained in:
Jim Ingham 2017-05-25 02:24:18 +00:00
parent da8f9b5b1b
commit d2a7e8538b
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}