比如 输入help x 显示
(gdb) help x
Examine memory: x/FMT ADDRESS.
ADDRESS is an expression for the memory address to examine.
FMT is a repeat count followed by a format letter and a size letter.
Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),
t(binary), f(float), a(address), i(instruction), c(char) and s(string).
Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).
The specified number of objects of the specified size are printed
according to the format.
Defaults for format and size letters are those previously used.
Default count is 1. Default address is following last thing printed
with this command or "print".
本文详细解读了GDB命令helpx的功能,包括如何使用x/FMTADDRESS进行内存检查,其中FMT参数可以指定不同的格式如octal、hex、decimal等,并能灵活调整查看对象的数量和大小。
1675

被折叠的 条评论
为什么被折叠?



