Spawn gdb
gdb_spawnInitiate a GDB debugging session and receive a session ID. Supports debugging local programs, core files, attaching to processes, and remote targets.
Instructions
Start a gdb session and return a session id. Supports local programs, core files, attach, remote targets, and extra native gdb args.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prog_path | No | Program path. Relative paths are resolved from work_dir. | |
| work_dir | Yes | Working directory for gdb and the debuggee. | |
| environments | No | Extra environment variables. | |
| core_path | No | Optional core file path. Relative paths are resolved from work_dir. Mutually exclusive with attach_pid and remote_target. | |
| attach_pid | No | Optional local process id to attach to. Mutually exclusive with core_path and remote_target. | |
| remote_target | No | Optional native GDB remote target, for example "localhost:1234". Mutually exclusive with core_path and attach_pid. | |
| gdb_args | No | Optional extra native gdb command-line arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |