mpc5200btiny linux quickstart l-679e

Add to My manuals
105 Pages

advertisement

mpc5200btiny linux quickstart l-679e | Manualzz

Debugging

4.2

Configuring and starting the debugger in Eclipse

In this passage you will learn how to configure your project settings to use Eclipse with the GNU GDB debugger. After the configuration of your project settings, the GDB debugger will start and connect to the GDB-server on the target.

Start Eclipse if the application is not started.

Select myHelloWorld in the Navigator window.

Select in the menu bar Run->Debug.

A dialog to create, manage and run applications will appear.

Select C/C++ Local Application.

Click on New.

© PHYTEC Messtechnik GmbH 2006 L-679e_5

87

phyCORE-MPC5200B tiny/IO QuickStart Instructions

Select the Search Project button.

Click on OK .

88

© PHYTEC Messtechnik GmbH 2007 L-679e_5

Debugging

Select the Debugger tab.

Select Debugger: GDB Server.

Click on the Browse button in the line of the GDB debugger.

A new dialog to choose the directory of the GDB opens.

Double-Click on File System.

Navigate to /opt/powerpc-603e-linux-gnu/gcc-4.1.2-glibc-

2.5-kernel-2.6.18

/

bin.

Select powerpc-603e-linux-gnu-gdb.

Select OK.

© PHYTEC Messtechnik GmbH 2006 L-679e_5

89

phyCORE-MPC5200B tiny/IO QuickStart Instructions

90

Select Connection: TCP

Enter the Host name IP address: 192.168.3.11

Click the Apply button.

The host name IP address, is the IP address of the target.

Click Debug button.

A new dialog opens.

© PHYTEC Messtechnik GmbH 2007 L-679e_5

Debugging

Select yes to switch to the debug perspective.

The debug perspective opens and the debugger stops at the first line automatically. The GDB is connected to the GDB Server on the target.

You have configured your project for remote debugging. You have started the GDB debugger in Eclipse and connected the

GDB with the GDB Server. You can start to debug the project.

© PHYTEC Messtechnik GmbH 2006 L-679e_5

91

advertisement

Related manuals