You copied the Doc URL to your clipboard.

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 an 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-23 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-24 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-25 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.
Was this page helpful? Yes No