执行GDB MI命令
gdb_commandDirectly execute GDB MI commands for advanced debugging operations like listing breakpoints or running programs, when other tools are insufficient.
Instructions
直接执行GDB Machine Interface (MI)命令。
参数:
command: MI命令 (以 - 开头,如 -break-list, -exec-run)
waitForDone (可选): 是否等待完成响应 (默认true)
示例:
gdb_command({command: "-break-list"}) → 列出所有断点
gdb_command({command: "-exec-run"}) → 运行程序
高级用法:当其他工具不支持特定操作时使用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | GDB MI command to execute, e.g., -break-list | |
| waitForDone | No | Wait for 'done' response |