[Lldb-commits] [lldb] 2b6ad82 - [lldb/test] Fix arch arm for 32-bit armv7l/armv8l
Muhammad Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 08:32:40 PDT 2020
Author: Muhammad Omair Javaid
Date: 2020-03-09T20:32:18+05:00
New Revision: 2b6ad82f8d0b20c6733217fcc6b3a07333287875
URL: https://github.com/llvm/llvm-project/commit/2b6ad82f8d0b20c6733217fcc6b3a07333287875
DIFF: https://github.com/llvm/llvm-project/commit/2b6ad82f8d0b20c6733217fcc6b3a07333287875.diff
LOG: [lldb/test] Fix arch arm for 32-bit armv7l/armv8l
This patch forces architecture "arm" if underlying os reports core
armv7l or armv8l. On linux systems 32 bit sysroot running on 64bit
AArch64 hardware reports armv7l or armv8l which is essently arm
32bit mode. This fixes 5 testcases on 32bit arm.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/lldbtest.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 866daada3b9e..a9d6e50ce01f 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1241,6 +1241,8 @@ def getArchitecture(self):
arch = module.getArchitecture()
if arch == 'amd64':
arch = 'x86_64'
+ if arch in ['armv7l', 'armv8l'] :
+ arch = 'arm'
return arch
def getLldbArchitecture(self):
More information about the lldb-commits
mailing list