[llvm-branch-commits] [llvm] [Dexter] Update lldb-based dexter-tests to use script-mode (PR #204367)
Stephen Tozer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jun 25 03:09:57 PDT 2026
================
@@ -45,12 +45,22 @@ int fun(int param) {
//// [0x0000000000400495, 0x00000000004004a2): DW_OP_reg3 RBX)
//// DW_AT_name ("param")
- return g; // DexLabel('s3')
+ return g; // !dex_label s3
}
int main() {
return fun(5);
}
-// DexExpectWatchValue('*p', 5, 5, 5, 5, 5, on_line=ref('s1'))
-// DexExpectWatchValue('param', 5, from_line=ref('s2'), to_line=ref('s3'))
+// CHECK-DAG: seen_values: 2
+// CHECK-DAG: correct_step_coverage: 100.0%
+
+/*
+---
+!where {lines: !label s1}:
+ !value p:
+ "*": 5
----------------
SLTozer wrote:
We can express multiple expected values for a variable/sub-variable, but we don't check order/number of times the value appears, though this is a feature that could be added. In this case, we could replicate the "number of times" check by adding a `!step exactly: [s1, s1, s1, s1, s1]` expect node, while separately expecting that the value of `*p` is always 5.
https://github.com/llvm/llvm-project/pull/204367
More information about the llvm-branch-commits
mailing list