![Phytec Linux-Kit phyCARD-M Quick Start Instructions Download Page 83](http://html1.mh-extra.com/html/phytec/linux-kit-phycard-m/linux-kit-phycard-m_quick-start-instructions_1554142083.webp)
phyCARD-M
Debugging an Example Project
Chapter 4
Debugging an Example
Project
20 min
In this chapter you will learn using the GNU debugger GDB on the host for
remote debugging in conjunction with the GDB server on the target. GDB
is the symbolic debugger of the GNU project and is arguably the most
important debugging tool for any Linux system.
First you will start the GDB server on the target. Then you will configure
the Eclipse platform and start the GNU debugger out of Eclipse using the
Debug view.
The CDT extends the standard Eclipse Debug view with functions for
debugging C/C++ code. The Debug view allows you to manage the
debugging and running of a program in the Workbench. Using the Debug
view you will be able to set breakpoints/watchpoints in the code and trace
variables and registers. The Debug view displays the stack frame for the
threads of each target you are debugging. Each thread in your program
appears as a node in the tree, and the Debug view displays the process for
each target you are running.
The GDB client is running on the host and is used to control the GDB
server on the target, which in turn controls the application running on the
target. GDB client and GDB server can communicate over a TCP/IP
network connection as well as via a serial interface. In this Quick Start we
will only describe debugging via TCP/IP.
© 2010 PHYTEC Messtechnik GmbH L-746e_1
79