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).
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 |