gdb_pause
Temporarily pause a running GDB inferior to inspect memory during heap layout. Issues the interrupt command to halt the target for memory examination.
Instructions
临时暂停正在运行的调试目标,等价于 gdb_interrupt。
用于堆布局过程中在关键包发送后暂停程序,然后调用 gdb_memory / gdb_chunk / gdb_command("x/..") 查看指定内存区域。
注意:本项目大量使用 continue& 让 inferior 后台运行,此时 GDB
已经返回 prompt。对 prompt 发送 Ctrl-C 只会中断 GDB 自身输入,未必
会暂停后台 inferior;因此这里优先执行 GDB 的 interrupt 命令,
只有在 foreground continue 无 prompt 的场景下才回退到 PTY Ctrl-C。
Returns: 暂停后的 GDB 输出。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |