util: fix apparent statetrace bug
authorSteve Reinhardt <steve.reinhardt@amd.com>
Sun, 7 Feb 2016 01:21:20 +0000 (17:21 -0800)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Sun, 7 Feb 2016 01:21:20 +0000 (17:21 -0800)
In the process of trying to eliminate boolean comparisons,
I ran across this statement that appears to be a bug
(should have been an assignment).

util/statetrace/base/tracechild.cc

index d22f2fd4346befc62bf158b73ed116309b4864b2..ef85dad3bb495e967f3b791e01f72864b2a0f0f5 100644 (file)
@@ -108,7 +108,7 @@ TraceChild::ptraceSingleStep()
           default: cout << "Unknown error" << endl; break;
         }
         cout << "Not able to single step!" << endl;
-        tracing == false;
+        tracing = false;
         return false;
     }
     doWait();