
Using Software Breakpoints
7-9
Using the DSK Debugger
7.4
Using Software Breakpoints
This section describes how to set and clear software breakpoints and how to
obtain a listing of all the breakpoints that are set.
While debugging, you may want to halt execution temporarily so that you can
examine the contents of selected variables, registers, and memory locations
before continuing with program execution. You can do this by setting software
breakpoints in the assembly language code. A software breakpoint halts any
program execution, whether you’re running or single-stepping through code.
Setting a software breakpoint
When you set a software breakpoint, the debugger highlights the breakpointed
line in a bolder or brighter font. The highlighted statement appears in the DIS-
ASSEMBLY window.
After execution is halted by a breakpoint, you can continue program execution
by reissuing any of the run or single-step commands.
You can set a software breakpoint by entering the SB command.
sb
addr
If you know the address where you’d like to set a software breakpoint, you can
use the SB command. This command is useful because it doesn’t require you
to search through code to find the desired line. When you enter the SB com-
mand, you enter an absolute address (
addr). (Once you have entered the ad-
dress, you are asked to choose the line number you want the breakpoint set
on.) Note that you cannot set multiple breakpoints at the same statement.
Clearing a software breakpoint
cb
addr
If you’d like to clear a breakpoint, you can use the CB command. You can use
the CB command to clear a specific address by entering an absolute address
(
addr) after the command. You can clear all breakpoints by entering the CB
command without an address.
Finding the software breakpoints that are set
db
Sometimes, you may need to know where software breakpoints are set. The
DB command provides an easy way to get a complete listing of all the software
breakpoints that are currently set in your program.
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...