[Lldb-commits] [lldb] r303832 - Fix the warning when you pass -c to step/next/si/ni.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Wed May 24 19:24:18 PDT 2017

Author: jingham
Date: Wed May 24 21:24:18 2017
New Revision: 303832

URL: http://llvm.org/viewvc/llvm-project?rev=303832&view=rev
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.



Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=303832&r1=303831&r2=303832&view=diff
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Wed May 24 21:24:18 2017
@@ -649,7 +649,7 @@ protected:
       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)) {
               "step operation does not support iteration count.");

More information about the lldb-commits mailing list