Epson S5U1C17001C Manual page 140

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

■Example 3
(gdb) x /16h _START_text
0xc00000 <_START_text>: 0x0004 0x00c0 0xc020 0x6c0f 0xa0f1 0xc000 0xc000 0x6c0f
0xc00010 <boot+12>:
When Length is specified, the specified amount of data is displayed.
When a code area is displayed, <label+offset> is displayed as the symbol, even for addresses without defined symbols.
■Example 4
(gdb) x /4w 0
0x0 <i>: 0x00001ae3 0x00000000 0x00000000 0x00000000
(gdb) x
0x10:
0x00000000
(gdb) x
0x14:
0x00000000
When the x command is executed once, you can dump and display a single unit of data (having the same size as that of the
previous address) from the address following the previous address by simply entering x.
■Example 5
(gdb) x /w &i
0x0 <i>: 0x00000010
(gdb) x /w i
0x10:
0x00000000
When specifying an address with a data symbol that references the assigned address, add & when you enter the command.
When only specifying a symbol, note that its data value is used as the address. In such case, & need not be added because labels
in program code indicate assigned addresses.
■Example 6
(gdb) x /10i boot
0x8004 <boot>:
0x8006 <boot+2>:
0x8008 <boot+4>:
0x800a <boot+6>:
0x800c <main>:
0x800e <main+2>:
0x8010 <main+4>:
0x8012 <main+6>:
0x8014 <main+8>:
0x8016 <main+10>:
The ten commands specified are displayed.
Notes
 Memory contents are displayed in little endian format.
 Even if the specified address is not a boundary address conforming to the data size, the x command starts displaying
memory contents from that address.
 If the specified address exceeds the 24-bit range, an error is assumed.
 An error does not occur even if a value of 2147483648 or greater is specified for Length. The value for Length is set to
2147483647.
S5U1C17001C Manual
(Rev. 1.0)
0xc000 0xc000 0x1c04 0xdff8 0xdfff 0x1ef5 0x0200 0x6c04
ext
0x20
ld.a
%sp,0x0
call
0x1
call
nop
ld
%r0,[0x0]
ld
%r1,[0x2]
ext
0x0
ld
%r2,0x64
call
0x16
call
ld
%r0,[0x0]
Seiko Epson Corporation
sld.a %sp,0x1000
0x1
(0x00800C)
nop
ld
%r0,[0x0]
ld
%r1,[0x2]
sld
%r2,0x64
0x16
(0x008042)
ld
%r0,[0x0]
8 Debugger
<main>
<p1>
<p2>
<memcpy>
<p1>
8-14

Advertisement

Table of Contents
loading

Table of Contents