add_probe
Add a conditional breakpoint or probe at a given location, executing specified GDB commands when hit. Optionally continue execution automatically.
Instructions
添加条件断点/自动采样 probe。commands 为 JSON 数组,每个元素是 GDB 命令。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"location": "<location>"
},
"name": "add_probe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | No | [] | |
| location | Yes | ||
| continue_ | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |