Commands (Setting A Command To Execute After Break) [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

commands
(setting a command to execute after break)
Operation
This command sets or cancels a command (multiple lines) to execute when execution halts at a specified breakpoint.
Format
commands [ BreakNo ]
After the command is entered, the prompt will change to a ">." Enter the command line to be set for a break.
The command line entered may consist of multiple lines. Enter "end" to end input.
Use the info breakpoint command to view the set command line.
Omitting the break number results in specification of the number of the most recently set breakpoint.
Command line cancellation:
When the prompt changes to ">," enter "end" on the first line.
Usage example
(gdb) break boot.s:16
(gdb) commands 1
>x /4b 0x100
>break main
>continue
>x /4b sub
>end
(gdb) continue
Continuing.
Breakpoint 1, boot () at boot.s:16
0x100: 0xaa 0xaa 0xaa 0xaa
Breakpoint 2 at 0x632: file main.c, line 18
Breakpoint 2, main () at main.c:18
Current language: auto; currentry c
0x658 <sub>: 0x00 0x40 0x25 0x18
(gdb)
Notes
• An error will be generated if a nonexistent numeric value is specified as a break number.
• If the break number is omitted, the number of the most recently set breakpoint will be specified.
• Proper operation is guaranteed for command lines of up to 50 lines. Even if a command line exceeds 50 lines, no error will
be generated. Lines exceeding 50 lines are used as is.
• The program will halt immediately if an error occurs while a command is executing.
• The command line is not executed when a break occurs using a temporary breakpoint (tbreak, thbreak).
• The commands command cannot be nested. If a commands command occurs in the command line, the command line
specified by the commands command cannot be entered during a break.
S5U1C17001C Manual
(Rev. 1.0)
Seiko Epson Corporation
8 Debugger
[ICD Mini / SIM]
8-41

Advertisement

Table of Contents
loading

Table of Contents