8 Debugger
until
(execute continuously with temporary break)
Operation
Executes the target program from the current PC address.
A temporary break can be specified at one location, causing the program to stop before executing that breakpoint. A hardware
PC break is used for this temporary break, which is cleared when the program breaks once. When a temporary break is
specified, assembly sources other than the C source are executed continuously.
If the program does not pass the breakpoint set (a miss), the program runs continuously until made to break by one of the
following causes:
Other set break conditions are met.
The [Suspend] button is clicked.
Control is returned to a higher level from the current level (within the function).
There is no assembly source or source information (in which case, only the current instruction is executed).
Format
until Breakpoint
Breakpoint: Temporary breakpoint
Can be specified by one of the following:
• Function name
• Source file name:line number, or line number only
• *Address (decimal, hexadecimal, or symbol)
Conditions: 0 ≤ address ≤ 0xffffff
Usage example
■Example 1
(gdb) until main
main () at main.c:10
The target program is run with a temporary break specified by a function name.
The program breaks before executing the first C instruction in main()(that is expanded to mnemonic). The PC on which the
program has stopped displays the start address of that instruction (i.e., address of first mnemonic expanded).
■Example 2
(gdb) until main.c:10
main () at main.c:10
The target program is run with a temporary break specified by line number. Although the breakpoint here is specified in
"source file name:line number" format when the breakpoint is to be set in the C source containing the current PC address, it can
be specified by simply using a line number like "until 10". For assembly sources, a source file name is always required.
When this command is executed, the program breaks before executing the C instruction on line 10 in main.c. The PC on
which the program has stopped displays the start address of that instruction (i.e., address of first mnemonic expanded). If no
instructions exist on line 10 with actual code (i.e., not expanded to mnemonic), the program breaks at the beginning of the first
instruction encountered with actual code thereafter.
■Example 3
(gdb) until *0xc0001e
main () at main.c:10
The target program is run with a temporary break specified by address. The program breaks before executing the instruction
stored at that address location. A symbol can also be used, as shown below.
(gdb) until *main
main () at main.c:7
Note that adding an asterisk (*) causes even the function name to be regarded as an address.
8-22
Seiko Epson Corporation
[ICD Mini / SIM]
S5U1C17001C Manual
(Rev. 1.0)
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?