Commands (Setting A Command To Execute After Break) [Icd Mini/Sim] - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

10 DEBUggEr
commands
(setting a command to execute after break)
Function
This command sets or cancels a command (multiple lines) to execute when execution halts at a specified
breakpoint.
Format
commands [ break number ]
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
(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.
10-112
0x40
0x25
0x18
EPSOn
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
[ICD Mini/Sim]
S5U1C17001C ManUal

Advertisement

Table of Contents
loading

Table of Contents