x (gdb モードのみ)

指定したアドレスのメモリーを出力します。

構文

x [/nfu] [addr]

パラメーター

n

表示するメモリー量。u で設定される単位。

デフォルト値は 1 です。

f

メモリーを表示する形式。設定可能な値は以下のとおりです。

i  instr

s  string

x  hex

d  sdecimal

u  udecimal

o  octal

t  binary

a  addr

c  char

f  float

デフォルトはこのコマンドや print コマンドを使用するたびに変更されます。初期デフォルト値は x です。

現在のデフォルト値は、前回使用した値に設定されます。

u

メモリーを表示する単位。設定可能な値は以下のとおりです。

b  byte

h  halfword

w  word

g  giant (8 バイト)

デフォルトはこのコマンドを使用するたびに変更されます。

現在のデフォルト値は、前回使用した値に設定されます。

addr

メモリーを出力する開始アドレス。デフォルトは、このコマンドや print コマンドを使用する際の最も最近出力されたアドレスの後のアドレスです。

説明

このコマンドは、メモリーを出力します。

nfu のデフォルトを使用する場合、スラッシュ (/) は任意です。

(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.

関連情報


このヘルプトピックについてのフィードバックを送信