phyFLEX
®
-i.MX 6
3.2.1 Starting the GDB Server on the Target
In this passage you will learn how to start the GDB server on the target. The GDB server will
be used to start and control the myHelloWorld program.
To debug a program with GDB, the program needs extended debugging symbols. These
have already been added while building the program.
Open Microcom.
Type
rootand press Enter.
Start the GDB server:
gdbserver192.168.3.11:10000myHelloWorld
You have started the GDB server on the target. The GDB server is now waiting for
connections on TCP port 10000.
3.2.2 Configuring and Starting the Debugger in Eclipse
In this passage you will learn ho
w to configure your project settings to use Eclipse with the
GNU debugger. After the configuration of your project settings, the GNU debugger will start
and connect to the GDB server on the target.
Start Eclipse if the application is not started yet.
Right-click on the myHelloWorld project in the Navigator window.
Select Debug As ► Debug Configurations.
A dialog to create, manage and run applications appears.
28
PHYTEC Messtechnik GmbH 2015 L-781e_7