CHAPTER 13 S1C88 FAMILY DEBUGGER
122
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Using the [Break] button easily allows the setting and canceling of breakpoints.
[Break] button
Click on the line in the [Source] window at where the program break is desired (after moving the
cursor to that position) and then click on the [Break] button. A
●
mark will be placed at the beginning
of the line indicating that a breakpoint has been set there, and the address is registered in the
breakpoint list. Clicking on the line that begins with a
●
and then the [Break] button cancels the
breakpoint you have set, in which case the address is deleted from the breakpoint list.
Setting breakpoints during source display mode
In the [Source] window in source display mode, there are lines at which breakpoints can be set and
those at which breakpoints cannot be set. No breakpoints can be set in source lines that do not have
actual code generated.
Example: 1
void func(void)
// NG
2
{
// OK
3
int a;
// NG
4
int x=0;
// OK
5
a = x;
// OK
6
}
// OK
Line 1 is a function declaration that does not have actual code (same as a label declaration in the
assembler). A breakpoint cannot be set here.
Line 3 is a variable declaration that does not have actual code. A breakpoint cannot be set here.
Line 4 is a variable declaration that has initialization code generated for it. A breakpoint can be set
here.
Line 2 allows a breakpoint to be set. However, the breakpoint is set in line 4 (instruction at the begin-
ning of that function).
Line 5 is an effective line that has actual code. A breakpoint can be set here.
Line 6 is a function termination (equivalent to mnemonic ret). A breakpoint can be set here.
However, if optimized during compiling, some lines become unusable in terms of setting a
breakpoint. In the above example, since nothing is derived by executing each line (rewriting of only
local variables involved, and that of global variables nonexistent), the actual code may be lost by
optimization.
The same applies for lines whose execution can be halted by the [Go to Cursor] button.
Содержание S1C88 Series
Страница 4: ......
Страница 304: ......
Страница 305: ...S1C88 Family Development Tools Quick Reference ...