x

This command displays the content of memory at a specific address.

Show/hideSyntax

x [/flag]... [address]

Where:

flag

Specifies additional flags:

count

Specifies the number of values to display. If none specified then the default is 1.

Size of memory:

b

1 byte

h

2 bytes

w

4 bytes (default)

g

8 bytes.

Output format:

x

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

d

signed decimal

u

unsigned decimal

o

octal

t

binary

a

absolute hexadecimal address

c

character

f

floating-point

s

default format from the content of memory

i

assembler instruction.

Note

If no output format is specified then the initial default is x, unless preceeded by another command using output format options in which case the same format is retained.

address

Specifies the address. This can be either an address, a symbol name, or an expression that evaluates to an address. If no address is specified then the default value is used. Some commands that access memory can set this default value. For example, x, print, output and info breakpoints.

Note

This command sets a default address variable to the location after the last accessed address.

Show/hideExample

Example 143. x

x 0x8000       # Display memory at address 0x8000
x/3wx 0x8000   # Display 3 words of memory from address 0x8000 (hexadecimal)
x/4b $SP       # Display 4 bytes of memory from address in SP register
x/4i $PC       # Display 4 instructions from address in PC register

Show/hideSee also

Copyright © 2010 ARM. All rights reserved.ARM DUI 0452B
Non-ConfidentialID100410