Displays the content of memory at a specific address.
Specifies additional flags:
Specifies the number of values to display. If none specified, then the default is 1.
Size of memory:
4 bytes (default)
Note If no output format is specified then the initial default is x , unless preceded by another command using output format options in which case the same format is retained.
hexadecimal (casts the value to an unsigned integer prior to printing in hexadecimal)
absolute hexadecimal address
- assembler instruction
Specifies the address. This can be either an address, a symbol name, or an expression that evaluates to an address. If no
addressis 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.
Example 1-230 Examples
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 x /h 0x8000 # Read a half-word from address 0x8000