![Ronetix PEEDI Скачать руководство пользователя страница 171](http://html1.mh-extra.com/html/ronetix/peedi/peedi_user-manual_1485040171.webp)
FAQ
Q:
What is debugging?
A:
Debugging is the process of removing bugs from computer programs. On one end of the
spectrum, debugging means staring at your source code until you see the bug. An infinitely more
effective method is to use a special program called a "debugger".
Q:
What is a debugger?
A:
A debugger is a program that runs other programs. A debugger lets the user (programmer) stop
running the program at any time and poke around internally. You can examine and change memory
contents, call functions, and look at system registers. Besides all these fun things, a debugger can be
used to fix your programs.
Q:
How to set gdb to work with PEEDI?
A:
First compiled your application with the ’-g -O0’ option to enable debugging. Next start gdb
pointing your application:
$ arm-elf-gdb myapp
To connect to the target (assuming that your PEEDI is set to use IP 192.168.1.10) type in the
console window:
(gdb) target remote 192.168.1.10:2000
This will tell GDB to connect to PEEDI using remote protocol. Now you can load your application
into targets memory like this:
(gdb) load
And your application is ready for debugging:
(gdb) continue
; start the application
or
PEEDI User’s Manual
171