Debug Control view

This view enables you to:

All the views in the DS-5 Debug perspective are associated with the current thread and stack frame and are updated when you select another thread or stack frame. The current stack frame is shown in bold text.

Connection states are identified with different icons and background highlighting. The following example shows a connection in the connected state and the others in the disconnected state. If you want to add another configuration to the view then you can use the Debug Control view menu.

Figure 24. Debug Control view

Debug Control view

Show/hideToolbar and context menu options

The following options are available from the toolbar or context menu:

Connect to Target

Connect to the selected target using the same launch configuration settings as the previous connection.

Disconnect from Target

Disconnect from the selected target.

Edit Launch Configuration

Displays the Debug Configurations dialog box, with the configuration for the selected connection displayed.

Remove Connection

Remove the selected target connection from the Debug Control view.

Debug from menu

This menu contains the following options:

Debug from main()

Stop when execution reaches main().

Debug from entry point

Start when execution reaches the entry point of the application.

Run

Run the application from the current location.

Reset menu

This menu lists the different types of reset that are available on your target.

Run/Continue (F8)

Start running the application from the current location.

After a breakpoint is hit or the target is interrupted, continue running the application.

Suspend

Interrupt the target and stop the current application.

Step Source Line, Step Instruction

This option depends on the stepping mode selected:

  • If source line mode is selected, step at the source level including stepping into all function calls where there is debug information.

  • If instruction mode is selected, step at the instruction level including stepping into all function calls.

Step Over Source Line, Step Over Instruction

This option depends on the stepping mode selected:

  • If source line mode is selected, step at the source level but stepping over all function calls.

  • If instruction mode is selected, step at the instruction level but stepping over all function calls.

Step Out

Continue running to the next instruction after the selected stack frame finishes.

Stepping by Source Line (press to step by instruction), Stepping by Instruction (press to step by source line)

Toggle the stepping mode between source line and instruction.

The Disassembly view and the Source view are automatically displayed when you step in instruction mode.

The Source view is automatically displayed when you step in source line mode. If the target stops in code such as a shared library, and the corresponding source is not available, then the Source view is not displayed.

View Menu

The following View Menu options are available:

Add Configuration (without connecting)

Display the Add Launch Configuration dialog box. The dialog box lists any configurations that are not already listed in the Debug Control view.

Select one or more configurations, then click OK. The selected configurations are added to the Debug Control view, but remain unconnected.

Trust Read Only Sections

When set, the debugger can assume that the read-only sections in the image match the appropriate memory contents of the target device. This provides the following advantages:

  • a file can be accessed while the target is running, even though target memory cannot be accessed

  • it is usually much faster to read data from a file on the host than to read the same data from the target device.

This is useful when using the ARM Profiler. Where possible, it allows the profiled code to be disassembled while the target is running.

Load Image...

Click to select the image file that you want to load to the selected target.

This option is enabled only for bare-metal targets and models, that is, when the debug operation is set to Download and debug application. It is disabled for gdbserver connections.

Set Working Directory...

Display the Current Working Directory dialog box. Enter a new location for the current working directory, then click OK.

Path Substitution...

Display the Path Substitution and Edit Substitute Path dialog boxes.

Use the Edit Substitute Path dialog box to associate the image path with a source file path on the host. Click OK. The image and host paths are added to the Path Substitution dialog box. Click OK when finished.

Show/hideSee also

Copyright © 2010 ARM. All rights reserved.ARM DUI 0446A
Non-ConfidentialID070310