[Lldb-commits] [lldb] a452ca4 - [lldb] Extend isAArch64 to arm64 and arm64e

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 17 19:45:51 PDT 2021


Author: Jonas Devlieghere
Date: 2021-08-17T19:45:45-07:00
New Revision: a452ca471c0e3d0b9999cd26d16a45b6bc43efee

URL: https://github.com/llvm/llvm-project/commit/a452ca471c0e3d0b9999cd26d16a45b6bc43efee
DIFF: https://github.com/llvm/llvm-project/commit/a452ca471c0e3d0b9999cd26d16a45b6bc43efee.diff

LOG: [lldb] Extend isAArch64 to arm64 and arm64e

This fixes TestMemoryTag on Apple Silicon.

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 7e1fdce36ede6..a899b1b154fe2 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1293,7 +1293,8 @@ def getCPUInfo(self):
 
     def isAArch64(self):
         """Returns true if the architecture is AArch64."""
-        return self.getArchitecture().lower() == "aarch64"
+        arch = self.getArchitecture().lower()
+        return arch in ["aarch64", "arm64", "arm64e"]
 
     def isAArch64SVE(self):
         return self.isAArch64() and "sve" in self.getCPUInfo()


        


More information about the lldb-commits mailing list