1.3.195 source

Loads and runs a script file to control and debug your target.

The following types of script are available:

DS-5

DS-5 Debugger commands.

CMM

CMM is a scripting language supported by some third-party debuggers. DS-5 supports a small subset of CMM-style commands, sufficient for running small target initialization scripts.

Jython

Jython is a Java implementation of the Python scripting language. It provides extensive support for data types, conditional execution, loops, and organization of code into functions, classes, and modules, as well as access to the standard Jython libraries. Jython is an ideal choice for larger or more complex scripts.

Note:

Debugger views are not updated when commands issued in a script are executed.

Syntax

source [/v] filename [args]

Where:

v

specifies verbose output. Script commands are interleaved with the debugger output.

filename

specifies the script file. Use these file extensions to identify the script type:

.ds

for DS-5 scripts.

.cmm,  .t32

for CMM scripts.

.py

for Jython scripts.

args

specifies the number of arguments (zero or more) to pass to the script (only supported for Jython scripts).

Example 1-198 Examples

source myScripts\myFile.ds        # Run DS-5 Debugger commands from myFile.ds.
source myScripts\myFile.cmm       # Run CMM-style commands from myFile.cmm.
source myScripts\myFile.t32       # Run CMM-style commands from myFile.t232.
source /v myFile.ds               # Run DS-5 Debugger commands from myFile.ds and
                                  # display commands interleaved with debugger output.
source myScripts\myFile.py        # Run a Jython script from file myFile.py.
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.