D-22
Motorola DSP56000 Family Optimizing C Compiler User’s Manual
For More Information On This Product,
Go to: www.freescale.com
Motorola
Stopping and Continuing
condition bnum
Remove the condition from breakpoint number
bnum
. It becomes an ordinary
unconditional breakpoint.
A special case of a breakpoint condition is to stop only when the breakpoint has been
reached a certain number of times. This is so useful that there is a special way to do it,
using the ignore count of the breakpoint. Every breakpoint has an ignore count, which is
an integer. Most of the time, the ignore count is zero, and therefore has no effect. But if the
program reaches a breakpoint whose ignore count is positive, then instead of stopping, it
just decrements the ignore count by one and continues. As a result, if the ignore count
value is n, the breakpoint will not stop the next n times it is reached.
ignore bnum count
Set the ignore count of breakpoint number
bnum
to count. The next count times the
breakpoint is reached, it will not stop.
To make the breakpoint stop the next time it is reached, specify a count of zero.
cont count
Continue execution of the program, setting the ignore count of the breakpoint that the
program stopped at to count minus one. Thus, the program will not stop at this breakpoint
until the count’th time it is reached.
This command is allowed only when the program stopped due to a breakpoint. At other
times, the argument to ‘cont’ is ignored.
If a breakpoint has a positive ignore count and a condition, the condition is not checked.
Once the ignore count reaches zero, the condition will start to be checked.
Note that you could achieve the effect of the ignore count with a condition such as
‘$foo-<= 0’ using a debugger convenience variable that is decremented each time. See
section Convenience Vars.
D.6.2.5 Commands Executed on Breaking
You can give any breakpoint a series of commands to execute when the program stops due
to that breakpoint. For example, you might want to print the values of certain expressions,
or enable other breakpoints.
commands bnum
Specify commands for breakpoint number
bnum
. The commands themselves appear on
the following lines. Type a line containing just ‘end’ to terminate the commands.
F
Freescale Semiconductor, Inc.
n
.