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

To connect the debugger to the Gnometris application that is already running on an ARM Linux target:

  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 8. 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 9. 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 10. 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.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0478H
Non-ConfidentialID111711