| |||
Home > Controlling the Behavior of Breakpoints > Setting a breakpoint that activates after a number of passes > Combining hardware and software pass counts |
You can combine hardware and software pass counts to achieve higher count values. If you define both hardware and software pass counts:
When the hardware pass count reaches zero, the software pass count is decremented. What happens next depends on your hardware:
For RVISS, the hardware pass count remains at zero, so that:
total count = hw_passcount + passcount
Other processors might exhibit the RVISS behavior, or might reset the hardware pass count to the initial value, so that:
total count = (hw_passcount +1) * passcount + hw_passcount
When the software pass count reaches zero, the breakpoint
activates and the activation count is incremented. The following
example shows the counts for the breakpoint bexec,hw_pass:3,pass:50
\DHRY_1\#70:0
on an RVISS target:
Initial state:
> dtbreak
S ID Type Address Count Miscellaneous
- -- ---- ------- ----- -------------
1 Exec 0x00008480 0 Pass=50
State after activation:
> dtbreak
S ID Type Address Count Miscellaneous
- -- ---- ------- ----- -------------
1 Exec 0x00008480 1 Pass=0
If the breakpoint is in a loop, then activation occurs on hit 53.