[Lldb-commits] [lldb] r233194 - Fix AVX register detection
Tamas Berghammer
tberghammer at google.com
Wed Mar 25 08:50:08 PDT 2015
Author: tberghammer
Date: Wed Mar 25 10:50:08 2015
New Revision: 233194
URL: http://llvm.org/viewvc/llvm-project?rev=233194&view=rev
Log:
Fix AVX register detection
* Use target triple instead of host platform
Modified:
lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py
Modified: lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py?rev=233194&r1=233193&r2=233194&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py Wed Mar 25 10:50:08 2015
@@ -475,10 +475,10 @@ class LldbGdbServerTestCase(gdbremote_te
self.qRegisterInfo_contains_at_least_one_register_set()
def targetHasAVX(self):
- # TODO we should be asking for targetGetSystem()
- # instead of platform.system()
+ triple = self.dbg.GetSelectedPlatform().GetTriple()
+
# TODO other platforms, please implement this function
- if platform.system() in ['Linux']:
+ if not re.match(".*-.*-linux", triple):
return True
# Need to do something different for non-Linux/Android targets
More information about the lldb-commits
mailing list