
D-20
Motorola DSP56000 Family Optimizing C Compiler User’s Manual
For More Information On This Product,
Go to: www.freescale.com
Motorola
Stopping and Continuing
D.6.2.3 Disabling Breakpoints
Rather than deleting a breakpoint, you might prefer to
disable
it. This makes the
breakpoint inoperative as if it had been deleted, but remembers the information on the
breakpoint so that you can
enable
it again later.
You disable and enable breakpoints with the ‘enable’ and ‘disable’ commands, specifying
one or more breakpoint numbers as arguments. Use ‘info break’ to print a list of
breakpoints if you don’t know which breakpoint numbers to use.
A breakpoint can have any of four different states of enablement:
Enabled. The breakpoint will stop the program. A breakpoint made with the ‘break’
command starts out in this state.
Disabled. The breakpoint has no effect on the program.
Enabled once. The breakpoint will stop the program, but when it does so it will
become disabled. A breakpoint made with the ‘tbreak’ command starts out in this
state.
Enabled for deletion. The breakpoint will stop the program, but immediately after it
does so it will be deleted permanently.
You change the state of enablement of a breakpoint with the following commands as
shown in Table D-7:
Table D-6. Deleting Breakpoints Commands
Command
Description
clear
Delete any breakpoints at the next instruction to be executed in the selected
stack frame (see section Selection). When the innermost frame is selected,
this is a good way to delete a breakpoint that the program just stopped at.
clear function
clear filename:function
Delete any breakpoints set at entry to the function function.
clear linenum
clear filename:linenum
Delete any breakpoints set at or within the code of the specified line.
delete bnums...
Delete the breakpoints of the numbers specified as arguments.
Table D-7. Disabling Breakpoint Commands
Command
Description
disable breakpoints bnums...
disable bnums...
Disable the specified breakpoints. A disabled breakpoint has no
effect but is not forgotten. All options such as ignore-counts,
conditions and commands are remembered in case the
breakpoint is enabled again later.
F
Freescale Semiconductor, Inc.
n
.