
(gdb) run
(start the program)
(gdb) c
(continue past the break point)
(gdb) set x=0
(this time, the return value is set to 0 instead of 1)
(gdb) c
(continue and you'll see displayed on the screen “number 1 number squared
0”)
quit
(
exit gdb)
14.2 Low Level Debugging with RedBoot
To provide simple, direct access to the TS-7200 hardware, RedBoot has an integrated
debugger that can perform standard low-level debugger functions. It can be used to
view or set values in memory using the dump and memfill commands. For example, the
command
dump -b 0x80840020
shows that the first byte is filled with zeros, indicating that both the green and red led
are turned off. the -b refers to a location in memory to display.
mfill -b 0x80840020 -p 0x03 -l 0x04
will result in the both the green and red LEDs being turned on. The -b, again, refers to a
location in memory. The -p indicates the pattern to write into memory, and the -l refers
to the length of the data being written out.
To verify that the write was successful,
dump -b 0x80840020
shows the first byte being having a value of 0x03 (bits 0 and 1 being set).
14.3 Using Other Debuggers
Other Linux-capable debuggers will work with the TS-7200. Please refer to your
debugger's manual for both installation and use.
TS-7200 User's Manual
Technologic Systems
http://www.embeddedARM.com/
32
12/2004
Summary of Contents for TS-7200
Page 1: ...TS 7200 User s Manual...