set arm

This command controls the behavior of the debugger when selecting the instruction set for disassembly and setting breakpoints.

Show/hideSyntax

set arm option

Where:

option

Specifies additional options:

force-mode

Controls the default debugger behavior overriding the fallback-mode setting.

arm

Forces the debugger to use the ARM® instruction set.

thumb

Forces the debugger to use the Thumb® instruction set.

auto

Forces the debugger to use debug information when available or the fallback-mode if this is not available. This is the default.

fallback-mode

Controls the default debugger behavior when force-mode is set to auto and debug information is not available.

arm

Forces the debugger to use the ARM instruction set when debug information is not available.

thumb

Forces the debugger to use the Thumb instruction set when debug information is not available.

auto

Forces the debugger to use the current instruction set identified by the T bit in the CPSR register. This is the default.

Show/hideExample

Example 96. set arm

set arm force-mode thumb                  # Force the use of Thumb
set arm fallback-mode arm                 # When force-mode is auto, use ARM
                                          # if no debug information is available

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452I
Non-ConfidentialID022212