Article Directory
gdb view memory data
Format: x /nfu
Explanation:
x is the abbreviation of examine, which means check.
n represents the number of memory cells to be displayed , for example: 20
f represents the display mode and can take the following values:
x 按十六进制格式显示变量。
d 按十进制格式显示变量。
u 按十进制格式显示无符号整型。
o 按八进制格式显示变量。
t 按二进制格式显示变量。
a 按十六进制格式显示变量。
i 指令地址格式
c 按字符格式显示变量。
f 按浮点数格式显示变量。
u represents the length of an address unit:
b表示单字节,
h表示双字节,
w表示四字节,
g表示八字节
test
x /20xh 0x7fffffffe080
20 is the number, x is hexadecimal, and h is a double word.
After closing the wh window with ctrl+x+a, press the up key to enter the GDB command entered last time.