2.8.1 Connecting to an existing application and starting an application rewind session

Use the Connect to already running application option to set up a connection to an existing application rewind server session on your target.

Prerequisites

Before connecting to an existing application rewind server session, you must:
  • Set up the target with an Operating System (OS) installed and booted. See the documentation supplied with the target for more information.
  • Ensure that the undodb-server file found in the DS-5_install_directory\arm\undodb\linux folder is copied to your target.
  • Ensure that the application that you want to debug is copied to the target.
  • Ensure that the application rewind server session is running and connected to your application.

Note

To run the application rewind server and the application on the target, use:
undodb-server --connect-port port path/myApplication
Where:
port is a TCP/IP port number of your choice that is used by application rewind server to communicate with DS-5 Debugger.
path/myApplication is the application that you want to debug.

Procedure

  1. From the main menu, select Window > Open Perspective > Other > DS-5 Debug to switch to the DS-5 Debug perspective.
  2. From the Run menu, select Debug Configurations....
  3. Select DS-5 Debugger from the configuration tree and then click New launch configuration to create a new configuration.
  4. In the Name field, enter a suitable name for the new configuration.
  5. Select the Connection tab to configure the target connection:
    1. In the Select target panel, select Linux Application Debug > Application Debug with Rewind Support > Connections via undodb-server > Connect to already running application.
      Figure 2-8 Application Debug with Rewind Support - Connect to already running application
      Application Debug with Rewind Support - Connect to already running application

    2. Enter the Address of the connection you want to connect to.
    3. Enter the UndoDB-server (TCP) Port that you want to connect to.
  6. Select the Files tab and in the Files panel, select the files on the host that you want the debugger to use to load the debug information from. If required, you can also specify other files on the host that you want to download to the target.
  7. Select the Debugger tab to configure the debugger settings.
    1. In the Run control panel, specify the actions that you want the debugger to perform after connecting to the target.
    2. In the Host working directory panel, configure the host working directory or use the default.
    3. In the Paths panel, specify any source or library search directories on the host that the debugger uses when it displays source code.
  8. Click Apply to save the configuration settings.
  9. Click Debug to connect to the target.
When connected, you are presented with all the relevant views and editors.
For more information on these options, press F1 on your keyboard to display dynamic context help.
Related concepts
6.13 About application rewind
Related reference
11.38 Debug Configurations - Connection tab
11.39 Debug Configurations - Files tab
11.40 Debug Configurations - Debugger tab
11.41 Debug Configurations - OS Awareness tab
11.42 Debug Configurations - Arguments tab
11.43 Debug Configurations - Environment tab
2.1 Overview: Debug connections in DS-5 Debugger
Non-ConfidentialPDF file icon PDF versionARM DUI0446W
Copyright © 2010-2015 ARM. All rights reserved.