add_conditional_breakpoint
Set a breakpoint that halts execution only when a TCL condition evaluates true, using register and memory values for conditional debugging.
Instructions
Add a conditional breakpoint. The target halts at address only if
condition evaluates true; otherwise resume/reset-run skips past it.
address : hex address for the breakpoint condition : a TCL expression/block. Use get_reg and get_mem ?width?. It is evaluated when the breakpoint is hit; non-zero = halt.
Examples: 'expr {[get_reg r0] > 100}' 'expr {[get_mem 0x20000000] == 0xdeadbeef}' 'incr ::hit_count; expr {$::hit_count >= 5}'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| condition | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |