attach_to_pid
Attach GDB to a running process by its PID to start a live debugging session with customizable options like working directory and timeout.
Instructions
Start gdb and attach to an existing process id.
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": {
"pid": "<pid>"
},
"name": "attach_to_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| cwd | No | ||
| load_init | No | ||
| start_timeout | No | ||
| prompt | No | ||
| force_prompt | No |