[Lldb-commits] [lldb] [LLDB] Update DIL handling of array subscripting. (PR #151605)
Ilia Kuklin via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 1 07:41:30 PDT 2025
================
@@ -69,17 +69,19 @@ def test_subscript(self):
substrs=["expected 'r_square', got: <'.'"],
)
- # Base should be a "pointer to T" and index should be of an integral type.
- self.expect(
- "frame var 'idx_1[0]'",
- error=True,
- substrs=["subscripted value is not an array or pointer"],
- )
+
+ # Test accessing bits in scalar types.
+ self.expect_var_path("idx_1[0]", value="1")
+ self.expect_var_path("idx_1[1]", value="0")
+
+ # Bit acess not valid for a reference.
----------------
kuilpd wrote:
```suggestion
# Bit access not valid for a reference.
```
https://github.com/llvm/llvm-project/pull/151605
More information about the lldb-commits
mailing list