gdb_set_breakpoint
Set a breakpoint at a function, file:line, or address in a GDB session. Supports conditional, temporary, and hardware-assisted breakpoints. Returns breakpoint details for debugging.
Instructions
Set a breakpoint at a function, file:line, or address. Supports conditional breakpoints and temporary breakpoints. Supports hardware-assisted breakpoints with hardware=true. Returns breakpoint details including number, address, and location. Use gdb_list_breakpoints to verify breakpoints were set correctly. Requires session_id parameter (obtained from gdb_start_session).
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": {
"session_id": "<session_id>",
"location": "<location>"
},
"name": "gdb_set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID from gdb_start_session | |
| location | Yes | Breakpoint location (function, file:line, or *address) | |
| condition | No | Conditional expression | |
| temporary | No | Whether breakpoint is temporary | |
| hardware | No | Whether to use a hardware-assisted breakpoint |