4.8.2 Connecting to the Gnometris application that is already running on an ARM® Linux target

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

Prerequisites

  • gdbserver and the Gnometris application running on the target and awaiting a connection on the appropriate port.
  • The Gnometris application files available in your host workspace.

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 and:
    1. In the Select target panel, browse and select Linux Application Debug > Connections via gdbserver > Connect to already running application.
    2. In the Connections panel, enter the TCP Address and Port details of the gdbserver running on the target system.
      Figure 4-9 Typical connection configuration for Linux application debug
      Typical connection configuration for Linux application debug

  5. Click on the Files tab and:
    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 4-10 Typical file selection for Linux application debug
      Typical file selection for Linux application debug

  6. Click on the Debugger tab, and:
    1. In the Run control panel, select Debug from symbol.
    2. Enter main in the field provided.
  7. In the Host working directory panel, select Use default.
    Figure 4-11 Typical debugger settings for Linux application debug
    Typical debugger settings for Linux application debugging

  8. Click on Debug to start the debugger and run to the main() function.
  9. Debugging requires the DS-5 Debug perspective. If the Confirm Perspective Switch dialog box opens, click Yes to switch perspective.
Related tasks
4.3 Importing the example projects into Eclipse
4.4 Building the gnometris project from Eclipse
4.5 Building the gnometris project from the command line
4.6 Loading the Gnometris application on a Fixed Virtual Platform (FVP)
4.7 Loading the Gnometris application on to an ARM® Linux target
4.8 Configuring an RSE connection to work with an ARM® Linux target
4.9 Debugging Gnometris
Related reference
4.2 Examples provided with DS-5
Related information
Debug Configurations - Connection tab
Debug Configurations - Files tab
Debug Configurations - Debugger tab
Debug Configurations - Environment tab
Non-ConfidentialPDF file icon PDF versionARM DUI0478Y
Copyright © 2010-2016 ARM. All rights reserved.