| |||
| Home > RealView Debugger Commands > Alphabetical command reference > SETTINGS | |||
The SETTINGS command enables you to define target settings.
SETTINGS [{default
| option_list}]
where:
defaultCauses all settings to revert to their default values.
option_listA list of option names and values. Each option-value pair consists of a setting name, an equals sign, and a value. The available option names and values are described in List of options.
You can specify multiple options in the list by separating each option-value pair with a colon.
The SETTINGS command enables you to define settings (properties) for target support. Some of these options have equivalent settings in the Workspace of the GUI. See the individual option description in List of options for the equivalent GUI setting.
If you want to change other Workspace settings, you must use the GUI.
If the only parameter is the default qualifier,
then all the settings revert to their default values. If you supply
no parameters, the command displays the current values of settings
for which a default value is defined.
Each setting is defined in the form of ,
and multiple settings can be changed using a colon (name=value:)
as a separator.
The standard option names are:
loadact={default|noimask|reset|pre_reset}Action on load:
defaultNormal load image behavior. For ARM processors, the processor is placed in ARM state and supervisor mode with interrupts disabled.
noimaskDo not change the processor status register. For example, on ARM processors, the default modification of CPSR is not performed.
resetReset the processor after the load, to perform a start from reset.
pre_resetReset the processor before the load.
restart={set_pc|reload|reload_data}Defines the action of the RESTART command. The possible values are:
set_pcSet the PC to the entry point of the image.
reloadReload
the image as for RELOAD. The options relating
to RELOAD, that is loadact and pcset,
also apply.
reload_dataReload only the initialized data of the image. The
option relating to RELOAD, that is loadact, also
applies.
restart_reset={True|False}Reset on restart:
TrueReset the processor on RESTART, in addition to any other actions.
FalseDo not reset the processor on RESTART.
fillstack=valueDefine a value to fill stack memory with before the program starts. This is not used for ARM processor image files.
fillheap=valueDefine a value to fill memory defined as heap. This is not used for ARM processor image files.
fillundefined=valueDefine a value to fill unused words of memory, such as words between each section of the image in memory. This is not used for ARM processor image files.
imagecache_enabled={True|False}The image cache stores debug information from the image rather than from physical memory. This enables RealView Debugger to access the debug information if it cannot access the physical memory, for example, when the target is running. This is especially important when tracing, so that you do not have to stop the target for RealView Debugger to collect or decompress trace information.
However, you might want to disable image caching if, for example, you have self-modifying code, which can lead to incorrect information being displayed.
Also, if the image cache is disabled, you cannot view the disassembly of your image when the target is running.
Enables and disables the image cache:
TrueEnables the image cache.
FalseDisables the image cache. This is the default.
Image caching is enabled by default.
disasm={default|standard|alternate|bytecode|extended}Set the disassembly mode. This affects the Disassembly tab, and the output from the PRINTDSM command.
The possible values are:
defaultAttempt to auto-detect the disassembly mode.
For ARM architecture processors, select from ARM, Thumb, Jazelle bytecodes, or Thumb-2EE, using information from the image file where available.
standardSelect the standard instruction disassembly mode.
For ARM architecture processors, select ARM state (32-bit) instructions.
alternateSelect the alternate instruction disassembly mode.
For ARM architecture processors, select Thumb state (16-bit) instructions.
bytecodeSelect the Jazelle bytecode disassembly mode. This is available only for ARM processors.
extendedSelect the Thumb-2EE disassembly mode. This is available only for ARM processors.
Equivalent Workspace setting: DEBUGGER, Disassembler, Format.
dsmvalue={True|False}Selects whether the instruction code is displayed in disassembly listings. The possible values are:
TrueDisassembly listings include the instruction opcode, along with the instruction memory address and mnemonics.
FalseDisassembly listings do not include the instruction opcode.
Equivalent Workspace setting: DEBUGGER, Disassembler, Instr_value.
Additional options might be implemented for a particular Debug Interface. See the documentation of your Debug Interface for more information.
The following examples show how to use SETTINGS:
settings loadact=resetAfter an image is loaded or reloaded, reset the processor (in hardware). This is useful when the image has been constructed to run from target reset.
settings disasm=standard:dsmvalue=trueSpecifies that disassembly is to be displayed using the standard format for the target, and that the instruction code is to be hidden from the disassembly listings.
Chapter 17 Configuring Workspace Settings in the RealView Debugger User Guide.