[Lldb-commits] [lldb] ff73cca - [LLDB] Tentative fix for lldb-arm-ubuntu buildbot. (#174893)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 7 16:56:09 PST 2026
Author: cmtice
Date: 2026-01-07T16:56:05-08:00
New Revision: ff73ccaac693511cf82ff15e0f77d8d4a72e5cd8
URL: https://github.com/llvm/llvm-project/commit/ff73ccaac693511cf82ff15e0f77d8d4a72e5cd8
DIFF: https://github.com/llvm/llvm-project/commit/ff73ccaac693511cf82ff15e0f77d8d4a72e5cd8.diff
LOG: [LLDB] Tentative fix for lldb-arm-ubuntu buildbot. (#174893)
Not sure if this will fix the problem because I don't have a 32-bit arm
machine to test with.
Added:
Modified:
lldb/test/API/commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py
Removed:
################################################################################
diff --git a/lldb/test/API/commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py b/lldb/test/API/commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py
index b48cae488e1a2..b1f91e55353f3 100644
--- a/lldb/test/API/commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py
+++ b/lldb/test/API/commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py
@@ -21,15 +21,25 @@ def test_type_cast(self):
self.runCmd("settings set target.experimental.use-DIL true")
+ Is32Bit = False
+ if self.target().GetAddressByteSize() == 4:
+ Is32Bit = True
+
# TestCastBUiltins
self.expect_var_path("(int)1", value="1", type="int")
self.expect_var_path("(long long)1", value="1", type="long long")
self.expect_var_path("(unsigned long)1", value="1", type="unsigned long")
- self.expect_var_path("(char*)1", value="0x0000000000000001", type="char *")
- self.expect_var_path(
- "(long long**)1", value="0x0000000000000001", type="long long **"
- )
+ if Is32Bit:
+ self.expect_var_path("(char*)1", value="0x00000001", type="char *")
+ self.expect_var_path(
+ "(long long**)1", value="0x00000001", type="long long **"
+ )
+ else:
+ self.expect_var_path("(char*)1", value="0x0000000000000001", type="char *")
+ self.expect_var_path(
+ "(long long**)1", value="0x0000000000000001", type="long long **"
+ )
self.expect(
"frame variable '(long&*)1'",
@@ -125,9 +135,6 @@ def test_type_cast(self):
error=True,
substrs=["cast from pointer to smaller type 'char' loses information"],
)
- Is32Bit = False
- if self.target().GetAddressByteSize() == 4:
- Is32Bit = True
if Is32Bit:
self.expect_var_path("(int)arr", type="int")
More information about the lldb-commits
mailing list