[llvm-branch-commits] [llvm] [Dexter] Add support for aggregate expects in the debugger (PR #202545)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 11 03:24:51 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD cross-project-tests/debuginfo-tests/dexter/dex/debugger/DAP.py cross-project-tests/debuginfo-tests/dexter/dex/dextIR/StepIR.py cross-project-tests/debuginfo-tests/dexter/dex/dextIR/ValueIR.py cross-project-tests/debuginfo-tests/dexter/dex/evaluation/ExpectMatch.py cross-project-tests/debuginfo-tests/dexter/dex/evaluation/Metrics.py cross-project-tests/debuginfo-tests/dexter/dex/evaluation/RunMatch.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- debugger/DAP.py	2026-06-11 10:21:03.000000 +0000
+++ debugger/DAP.py	2026-06-11 10:24:18.816746 +0000
@@ -1054,11 +1054,15 @@
                 new_ir = self._evaluate_result_value(
                     var["name"], var["value"], var.get("type")
                 )
                 variable_ir.sub_values.append(new_ir)
                 new_ref = var.get("variablesReference", 0)
-                if new_ir.could_evaluate and not new_ir.is_irretrievable and new_ref != 0:
+                if (
+                    new_ir.could_evaluate
+                    and not new_ir.is_irretrievable
+                    and new_ref != 0
+                ):
                     variables_irs[new_ref] = new_ir
                     search_vars.append(new_ref)
 
     def evaluate_expression(self, expression, frame_idx=0) -> ValueIR:
         # The frame_idx passed in here needs to be translated to the debug adapter's internal frame ID.

``````````

</details>


https://github.com/llvm/llvm-project/pull/202545


More information about the llvm-branch-commits mailing list