| |||
| Home > Getting started with the debugger > Launching the debugger from the command-line console | |||
To launch the debugger:
Launch a command-line console:
On Windows, select Start → All Programs → ARM DS-5 → DS-5 Command Prompt.
On Linux:
Add the directory
to your install_directory/binPATH environment variable. If it is already
configured then you can skip this step.
Open a Unix bash shell.
Launch the debugger using the following command-line syntax:
debugger --target [--target_device] [option]...
Where:
--target=host:port | filenameFor gdbserver connections you
can specify the for
the connection between the debugger and gdbserver.host:port
A serial connection requires an XML file similar to the following example:
Example 1. mySerialConfig.xml
<?xml version="1.0"?> <RVConfigUtility> <rddi type="rddi-debug-gdb"/> <rddigdb> <connection> <serial> <port>COM1</port> <speed>115200</speed> </serial> </connection> </rddigdb> </RVConfigUtility>
--target_device=number | nameSpecifies the device number or name. You must launch
the debugger with --target_device command-line
option when configuring a connection to a target containing multiple
devices. If you do not specify --target_device then the
debugger lists all the available devices and quits.
and can
be any of the following:option
--helpDisplays a summary of the main command-line options.
--script=filenameSpecifies a script file containing debugger commands to control and debug your target. You can repeat this option if you have several script files. The scripts are run in the order specified.
--interactiveSpecifies interactive mode that redirects standard input and output to the debugger from the current command-line console, for example, Windows Command Prompt or Unix bash shell. This is the default if no script file is specified.
--target_osSpecifies the name of the target Operating
System (OS), for example, --target_os=linux.
This enables OS support within the debugger for example, shared
library support.
--stop_on_connect=true | falseSpecifies whether the debugger stops the target
when it connects to the target device. To leave the target unmodified
on connection you must specify false. The default
is --stop_on_connect=true.
--continue_on_error=true | falseSpecifies whether the debugger stops the target
and exits the current script when an error occurs. The default is --continue_on_error=false.
--image=filenameSpecifies the image file for the debugger to load when it connects to the target.
--log_config=optionSpecifies the type of logging configuration to output runtime messages from the debugger.
Where:
optionSpecifies a predefined logging configuration or a user-defined logging configuration file:
infoOutput messages using the predefined INFO level configuration. This level does not output debug messages. This is the default.
debugOutput messages using the predefined DEBUG level configuration. This option outputs both INFO level and DEBUG level messages.
filenameSpecifies a user-defined logging configuration file to customize the output of messages. The debugger supports log4j configuration files.
--log_file=filenameSpecifies an output file to receive runtime messages from the debugger. If this option is not used then output messages are redirected to the console.
--top_mem=addressSpecifies the stack base, also known as the top of memory. Top of memory is only used for semihosting operations.
--enable_semihostingEnables semihosting operations.
--disable_semihostingDisables semihosting operations.
--disable_semihosting_consoleDisables all semihosting operations to the debugger console.
--semihosting_error=filenameSpecifies a file to write stderr for
semihosting operations.
--semihosting_input=filenameSpecifies a file to read stdin for
semihosting operations.
--semihosting_output=filenameSpecifies a file to write stdout for
semihosting operations.
Semihosting is used to communicate input/output requests from application code to the host workstation running the debugger.
ARM® DS-5™ Debugger Command Reference: