[Lldb-commits] [lldb] r297774 - [debugserver] Fixing a small logic error from r297685

Chris Bieneman via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 14 13:01:25 PDT 2017


Author: cbieneman
Date: Tue Mar 14 15:01:24 2017
New Revision: 297774

URL: http://llvm.org/viewvc/llvm-project?rev=297774&view=rev
Log:
[debugserver] Fixing a small logic error from r297685

I had mixed up the logic during patch review. This resolves the test failure reading YMM registers on Darwin.

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp

Modified: lldb/trunk/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp?rev=297774&r1=297773&r2=297774&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp Tue Mar 14 15:01:24 2017
@@ -63,7 +63,7 @@ bool DetectHardwareFeature(const char *f
   int answer = 0;
   size_t answer_size = sizeof(answer);
   int error = ::sysctlbyname(feature, &answer, &answer_size, NULL, 0);
-  return error != 0 && answer != 0;
+  return error == 0 && answer != 0;
 }
 
 enum AVXPresence { eAVXUnknown = -1, eAVXNotPresent = 0, eAVXPresent = 1 };




More information about the lldb-commits mailing list