x (gdb mode only)

Print memory at the specified address.

Syntax

x [/nfu] [addr]

Parameters

n

The amount of memory to display, in units set by u.

The default value is 1

f

The format in which to display memory. Possible values are:

i  instr

s  string

x  hex

d  sdecimal

u  udecimal

o  octal

t  binary

a  addr

c  char

f  float

The default changes each time you use this command or the print command. The initial default value is x.

The current default value is whatever you used most recently.

u

The units in which to display memory. Possible values are:

b  byte

h  halfword

w  word

g  giant (8 bytes)

The default changes each time you use this command.

The current default value is whatever you used most recently.

addr

The starting address for which you want to print memory. The default is the address following the most recently printed address when using this or the print command.

Description

This command prints memory.

When you use defaults for n, f, and u, the slash (/) is optional.

Example

(idb) x/10i &main
0x080483c4 <main>:      pushl    %ebp
0x080483c5 <main+1>:    movlr    %esp, %ebp
0x080483c7 <main+3>:    subl     $0x3, %esp
0x080483ca <main+6>:    andl     $-8, %esp
0x080483cd <main+9>:    addl     $0x4, %esp
0x080483d0 <main+12>:   subl     $0x14, %esp
0x080483d3 <main+15>:   flds     0x8048628
0x080483d9 <main+21>:   fstps    -20(%ebp)
0x080483dc <main+24>:   movl     $-1, -16(%ebp)
0x080483e3 <main+31>:   movl     $0xa, -12(%ebp)
End of assembler dump.

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.