File tree 2 files changed +11
-4
lines changed
packages/Python/lldbsuite/test
test/API/tools/lldb-server 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1344,6 +1344,13 @@ def isAArch64(self):
1344
1344
arch = self .getArchitecture ().lower ()
1345
1345
return arch in ["aarch64" , "arm64" , "arm64e" ]
1346
1346
1347
+ def isARM (self ):
1348
+ """Returns true if the architecture is ARM, meaning 32-bit ARM. Which could
1349
+ be M profile, A profile Armv7-a, or the AArch32 mode of Armv8-a."""
1350
+ return not self .isAArch64 () and (
1351
+ self .getArchitecture ().lower ().startswith ("arm" )
1352
+ )
1353
+
1347
1354
def isAArch64SVE (self ):
1348
1355
return self .isAArch64 () and "sve" in self .getCPUInfo ()
1349
1356
Original file line number Diff line number Diff line change @@ -199,12 +199,12 @@ def test_qRegisterInfo_contains_required_generics_debugserver(self):
199
199
if not self .isRISCV ():
200
200
self .assertIn ("flags" , generic_regs )
201
201
202
- if self .isRISCV ():
203
- # Special RISC-V register for a return address
202
+ if self .isRISCV () or self . isAArch64 () or self . isARM () :
203
+ # Specific register for a return address
204
204
self .assertIn ("ra" , generic_regs )
205
205
206
- # RISC-V's function arguments registers
207
- for i in range (1 , 9 ):
206
+ # Function arguments registers
207
+ for i in range (1 , 5 if self . isARM () else 9 ):
208
208
self .assertIn (f"arg{ i } " , generic_regs )
209
209
210
210
def test_qRegisterInfo_contains_at_least_one_register_set (self ):
You can’t perform that action at this time.
0 commit comments