gdb_memory
Inspect memory at a given address using GDB's x command. Returns byte and word views with configurable grouping, suitable for examining heap chunk structures.
Instructions
查看指定内存区域,适合模型检查 source/next chunk/victim 附近内容。
会执行 GDB 的 x 命令输出字节和按 word_size 分组的数值。地址支持 表达式/十六进制,如 "0x57eebce8"、"$esp"、"0x57eebce8+0x40"。
Args: address: 起始地址或 GDB 表达式。 size: 查看字节数。 word_size: 分组大小,1/2/4/8;4 对 i386 chunk header 最常用。 pause_first: 若为 True,先 Ctrl-C 暂停目标。 include_bytes: 是否输出 x/Nxb。 include_words: 是否输出 x/Nxw/xg 等分组视图。
Returns: 内存 dump 文本。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| address | Yes | ||
| word_size | No | ||
| pause_first | No | ||
| include_bytes | No | ||
| include_words | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |