Epson S5U1C17001C Manual page 496

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

Advertisement

10 DEBUggEr
Specification of target memory read mode (c17 readmd command)
In an ordinary memory read by the x command or c17 df command, data is always read out in units of bytes,
regardless of accessed data size. If this read method becomes inconvenient, use the c17 readmd command to
alter the read method so that memory data will be read out from the correct boundary address in specified units.
Note that doing so will increase memory dump time.
Example: The read method is modified so that memory data will be read out from the correct boundary address
in specified units.
(gdb) c17 readmd 1
Variable list
A list of variables can be displayed.
Displaying global variables (info var, print commands)
You can display a list of global variables, static variables, or section symbols by using the info var
command. You also can display the contents of variables by using the x or print command.
Example: Displaying a list of global symbols
(gdb) info var
All defined variables:
File main.c:
int i;
Non-debugging symbols:
0x00000000
__START_bss
0x00000004
__END_bss
0x00000004
__END_data
0x00000004
__START_data
Displaying local variables (info locals command)
You can display a list of local variables and values defined in a function that includes the current PC address by
using the info locals command.
Example: Displaying local variables defined in current function
(gdb) info locals
i = 0
j = 2
10-46
Moreover, when the [Watch Expressions] window has global
variables registered in it, you can monitor the values of those
variables. For display in the [Watch Expressions] window and how
to operate in it, see Section 10.4.7, "[Watch Expressions] Window".
Moreover, by leaving the [Local Variables] window open, you
can monitor the values of all local variables defined in the current
function. For display in the [Local Variables] window and how to
operate in it, see Section 10.4.8, "[Local Variables] Window".
EPSOn
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
ICD Mini mode only
S5U1C17001C ManUal

Advertisement

Table of Contents
loading

Table of Contents