| |||
| Home > DS-5 Debug perspective and views > Debug Control view | |||
This view enables you to:
connect to and disconnect from a target
load an application image on to the target and debug information when required by the debugger
start the application and stop at a specific address
run the application from the beginning
stop the application
continue running the application after a breakpoint is hit or the target is suspended
control the execution of an image by sequentially stepping through an application at the source or instruction level
view the call stack
set the working directory
modify the search paths used by the debugger when it executes any of the commands that look up and display source code
reset the target.
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.
The following options are available from the toolbar or context menu:
Connect to the selected target using the same launch configuration settings as the previous connection.
Disconnect from the selected target.
Displays the Debug Configurations dialog box, with the configuration for the selected connection displayed.
Remove the selected target connection from the Debug Control view.
This menu contains the following options:
Stop when execution reaches main().
Start when execution reaches the entry point of the application.
Run the application from the current location.
This menu lists the different types of reset that are available on your target.
Start running the application from the current location.
After a breakpoint is hit or the target is interrupted, continue running the application.
Interrupt the target and stop the current application.
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.
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.
Continue running to the next instruction after the selected stack frame finishes.
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.
The following View Menu options are available:
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.
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.
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.
Display the Current Working Directory dialog box. Enter a new location for the current working directory, then click OK.
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.