https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/174893
>From 9186ebdef1f92aa2933414666865621ab42f5392 Mon Sep 17 00:00:00 2001 From: Caroline Tice <[email protected]> Date: Wed, 7 Jan 2026 16:32:54 -0800 Subject: [PATCH 1/3] [LLDB] Tentative fix for lldb-arm-ubuntu buildbot. Not sure if this will fix the problem because I don't have a 32-bit arm machine to test with. --- .../var-dil/expr/Casts/TestFrameVarDILCast.py | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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..dcc65029ea0ef 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,24 @@ 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 +134,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") >From e2a9873120d00313428cce122bccccb4ec64c261 Mon Sep 17 00:00:00 2001 From: Caroline Tice <[email protected]> Date: Wed, 7 Jan 2026 16:44:16 -0800 Subject: [PATCH 2/3] Fix missing parenthesis. --- .../commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 dcc65029ea0ef..f15407a9343ce 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 @@ -33,7 +33,7 @@ def test_type_cast(self): if Is32Bit: self.expect_var_path("(char*)1", value="0x00000001", type="char *") self.expect_var_path( - "(long long**)1", value="0x00000001", type="long long **" + "(long long**)1", value="0x00000001", type="long long **") else: self.expect_var_path("(char*)1", value="0x0000000000000001", type="char *") self.expect_var_path( >From c8a386506013642f790201ea9164a4e54be9e3b6 Mon Sep 17 00:00:00 2001 From: Caroline Tice <[email protected]> Date: Wed, 7 Jan 2026 16:47:13 -0800 Subject: [PATCH 3/3] Fix clang-format issue. --- .../commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f15407a9343ce..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 @@ -33,7 +33,8 @@ def test_type_cast(self): if Is32Bit: self.expect_var_path("(char*)1", value="0x00000001", type="char *") self.expect_var_path( - "(long long**)1", value="0x00000001", type="long long **") + "(long long**)1", value="0x00000001", type="long long **" + ) else: self.expect_var_path("(char*)1", value="0x0000000000000001", type="char *") self.expect_var_path( _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
