1.3.107 output

Displays only the result of an expression. This is similar to the print command but it does not record the results in a debugger variable.

Syntax

output [/flagexpression

Where:

flag

Specifies the output format:

x

Hexadecimal (casts the value to an unsigned integer prior to printing in hexadecimal)

d

Signed decimal. This is the default.

u

Unsigned decimal

o

Octal

t

Binary

a

Absolute hexadecimal address

c

Character

f

Floating-point

s

Default format from the expression.

expression

Specifies an expression that is evaluated and the result is returned.

Note:

If your expression accesses memory then a default address variable is set to the location after the last accessed address. Some commands, such as x, use this default value if no address is specified.

Example 1-110 Examples

output (int*)8                    # Cast a number as a pointer
output 4+4                        # Display result of expression in decimal
output "initializing..."          # Display progress information
output /x $PC                     # Display address in PC register (hexadecimal)
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.