Creating a DS-5 Debugger script

The script file must contain only one command on each line. Each command can be identified with comments if required. The .ds file extension must be used to identify this type of script.

Example 6. DS-5 Debugger script

# Filename: myScript.ds

# Initialization commands
load "struct_array.axf"       # Load image
file "struct_array.axf"       # Load symbols

break main                    # Set breakpoint at main()
break *0x814C                 # Set breakpoint at address 0x814C

# Run to breakpoint and print required values
run                           # Start running device
wait 0.5s                     # Wait or time-out after half a second
info stack                    # Display call stack
info registers                # Display info for all registers

# Continue to next breakpoint and print required values
continue                      # Continue running device
wait 0.5s                     # Wait or time-out after half a second
info functions                # Displays info for all functions
info registers                # Display info for all registers
x/3wx 0x8000                  # Display 3 words of memory from 0x8000 (hex)

...

# Shutdown commands
delete 1                      # Delete breakpoint assigned number 1
delete 2                      # Delete breakpoint assigned number 2

Show/hideSee also

Tasks
Reference
Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446H
Non-ConfidentialID111711