2.7.2 Connecting to the Gnometris application that is already running on a ARM® Linux target

Describes how to connect to the Gnometris application that is already running on a ARM Linux target.

Procedure

  1. Select Debug Configurations... from the Run menu.
  2. Select DS-5 Debugger from the configuration tree and then click on New to create a new configuration. Alternatively you can select an existing DS-5 Debugger configuration and then click on Duplicate from the toolbar.
  3. In the Name field, enter a suitable name for the new configuration.
  4. Click on the Connection tab to see the target and connection options.
  5. In the Select target panel:
    1. Select the required platform, for example, beagleboard.org- OMAP_3530.
    2. Select Connect to already running gdbserver for the debug operation.
  6. In the Connections panel, for the connection between gdbserver and the application:
    1. Enter the IP address of the target.
    2. Enter the port number.
    Figure 2-9 Typical connection configuration for a Beagle board
    Typical connection configuration for a Beagle board

  7. Click on the Files tab to see the file options.
  8. In the Files panel:
    1. Select Load symbols from file and then select the application image containing debug information. For example: H:\workspace\gnometris\gnometris.
    2. Click Add a new resource to the list to add another file entry.
    3. Select Load symbols from file and then select the shared library that is required by the Gnometris application. For example: H:\workspace\gnometris\libgames-support.so.
      Figure 2-10 Typical file selection for a Beagle board
      Typical file selection for a Beagle board

  9. Click on the Debugger tab to see the debugging options for the configuration.
  10. In the Run control panel:
    1. Select Debug from symbol.
    2. Enter main in the field provided.
  11. In the Host working directory panel, select Use default.
    Figure 2-11 Typical debugger settings for a Beagle board
    Typical debugger settings for a Beagle board

  12. Click on Debug to start the debugger and run to the main() function.
  13. Debugging requires the DS-5 Debug perspective. If the Confirm Perspective Switch dialog box opens, click on Yes to switch perspective.
Related tasks
2.2 Importing the example projects into Eclipse
2.3 Building the gnometris project from Eclipse
2.4 Building the gnometris project from the command line
2.5 Loading the Gnometris application on a Fixed Virtual Platform (FVP)
2.6 Loading the Gnometris application on to an ARM® Linux target
2.7 Configuring an RSE connection to work with an ARM® Linux target
2.8 Debugging Gnometris
Related reference
3.6 Examples provided with DS-5
Related information
Debug Configurations - Connection tab
Debug Configurations - Files tab
Debug Configurations - Debugger tab
Debug Configurations - Environment tab
Non-Confidential - BetaPDF file icon PDF versionARM DUI0478U
Copyright © 2010-2015 ARM. All rights reserved.