Next (Single-Step With Skip, Every Line); Nexti (Single-Step With Skip, Every Mnemonic) [Icd Mini / Sim] - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

next
(single-step with skip, every line)
nexti
(single-step with skip, every mnemonic)
Operation
Single-steps the target program from the current PC address. The basic operations here are the same as with step and stepi,
except that when a function or subroutine call is encountered, all lines or instructions in the called function or subroutine are
executed successively as one step until returning to a higher level.
next: Single-steps the program by executing one source line at a time. In C sources, one line of C instruction
(all multiple expanded mnemonics) are executed as one step. In assembly sources, instructions are executed the same way as
for nexti.
nexti: Single-steps the program by executing one assembler instruction (in mnemonic units) at a time.
In addition to one line or instruction, a number of steps to execute can also be specified.
However, even before all specified steps are completed, the program may be halted by one of the following causes:
 Already set break conditions are met.
 The [Suspend] button is clicked.
Format
next [Count]
nexti [Count]
Count:
Number of steps to execute (decimal or hexadecimal)
One step is assumed if omitted.
Conditions: 1 ≤ Count ≤ 0x7fffffff
Usage example
■Example 1
(gdb) next
The source line displayed on the current PC is executed. When the source is a function or subroutine call, the function or
subroutine called is also executed until returning to a higher level.
■Example 2
(gdb) nexti
The instruction (in mnemonic units) is executed at the address displayed on the current PC. When the instruction is a
subroutine call, the subroutine called is also executed until returning to a higher level.
■Example 3
(gdb) next 10
sub (k=5) at main.c:20
Ten lines are executed from the source line displayed on the current PC.
■Example 4
(gdb) nexti 10
main () at main.c:13
Ten instructions (in mnemonic units) are executed from the address displayed on the current PC.
Notes
 The program cannot be single-stepped from an address that does not have source information (i.e., debugging information
included in the object). The program can be run continuously, however, by using the continue command.
 To run the program from the beginning, execute c17 rst (reset) before next or nexti.
 Even with nexti, ext-based extended instructions are executed collectively (i.e., entire extended instruction set consisting
of two or three instructions) as one step.
 Interrupts are accepted even while single-stepping the program.
Similarly, the halt and slp instructions are executed while single-stepping the program, causing the CPU to enter standby
mode. The CPU exits standby mode when an external interrupt is generated. Clicking the [Suspend] button also releases the
CPU from standby mode.
S5U1C17001C Manual
(Rev. 1.0)
Seiko Epson Corporation
8 Debugger
[ICD Mini / SIM]
8-25

Advertisement

Table of Contents
loading

Table of Contents