[llvm-branch-commits] [llvm] [Dexter] Add condition check to state nodes (PR #203847)
Orlando Cazalet-Hyams via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jun 24 07:17:06 PDT 2026
================
@@ -86,8 +86,16 @@ def _run_debugger_custom(self, cmdline):
self.step_collection.clear_steps()
+ def check_condition(step: StepIR, frame_idx: int, condition: str):
+ """Evaluates the given condition at the given frame index. Requires the debugger session to be alive and the
+ debuggee must be stopped."""
+ cond_value = self.debugger.evaluate_expression(condition, frame_idx)
+ step.frames[frame_idx].watches[condition] = cond_value
+ # FIXME: This is a language-specific test (albeit it covers all languages Dexter is currently used with).
----------------
OCHyams wrote:
Potentially useless suggestion, would it be worth doing a "true == true" check at some point, during init or something? possibly it's just too much faff to be worth it
https://github.com/llvm/llvm-project/pull/203847
More information about the llvm-branch-commits
mailing list