S5U1C17001C ManUal
EPSOn
10-53
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
10
Debugger
Software PC breakpoints can also be set from the [Source] window.
The lines where you can set software PC breakpoints are marked by a bar "–" at the beginning of the lines.
Move the cursor near the beginning of a line where you wish to set a breakpoint. The cursor will change shape
to a circle (white ). Click the mouse button there. The "–" mark at the beginning of the line will change to
n
(in red by default), indicating that a software PC breakpoint has been set. Clicking the button again clears the
breakpoint you have set.
Otherwise, right-clicking at the "–" position will display a popup menu, so you can choose [Set Breakpoint]
from the menu to set a software PC breakpoint. You can also choose [Set Temporary Breakpoint] from the
menu and can set a temporary software PC breakpoint. When you have set a temporary software PC breakpoint,
the color of the
n
mark that indicates the breakpoint becomes orange (by default).
For how to use the functions of the [Source] window, see Section 10.4.2, "[Source] Window".
notes
:
•
Software PC breaks are implemented by an embedded
brk
instruction. Therefore, they cannot
be used for the target board ROM in which instructions cannot be embedded. In such case,
use hardware PC breaks instead.
•
When you set a software PC break at the address of an
ext
-based extended instruction or
delayed branch instruction, note that you cannot set a breakpoint at other than the start address.
ext
xxxx
... Can be set.
jr*.d
xxxx
... Can be set.
ext
xxxx
... Cannot be set.
Delayed instruction ... Cannot be set.
Extended instruction ... Cannot be set.
•
The debugger refers to the memory map information set by loading a parameter file using
the
c17 rpf
command as it checks each address to determine whether a software PC
breakpoint can be set. Unless the
c17 rpf
command has been executed, the debugger does
not perform error processing that pertains to the target system.
Hardware PC breaks (
hbreak
and
thbreak
commands)
The on-chip debugger of the S1C17 Core is used to set the type of break. Breaks can also be simulated in
simulator mode, as well as in other modes. When the executed PC address matches the address set by a
command, the program is made to break before executing the instruction at that address. The maximum number
of addresses that can be set as hardware PC breakpoints depends on the model. For more information, refer to
the technical manual for the model in question.
Like software PC breaks, there are two types of hardware PC breaks: normal and temporary.
hbreak
command: This command sets a normal hardware PC breakpoint.
Example: To set a hardware PC breakpoint at line 7 in
main.c
(gdb)
hbreak
main.c:7
Hardware assisted breakpoint 1 at 0xc0001c: file main.c, line 7.
thbreak
command: This command sets a temporary hardware PC breakpoint.
Example: To set a temporary hardware PC breakpoint at address 0xc0001e
(gdb)
thbreak
*0xc0001e
Hardware assisted breakpoint 2 at 0xc0001e: file main.c, line 10.
When a hardware PC break occurs, the debugger waits for command input after displaying the following
message:
(gdb) continue
Continuing.
Breakpoint 1, main () at main.c:7
Breakpoints can be set by specifying an address, source line number, or function/label name the same way as
for software PC breakpoints.
Hardware PC breakpoints can also be set from the [Source] window.
The lines where you can set hardware PC breakpoints are marked by a bar "–" at the beginning of the lines.
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...