Interrupt gdb
gdb_interruptInterrupt a hanging debug session by sending SIGINT, then retrieve incremental output after the GDB prompt appears.
Instructions
Send SIGINT to the gdb session/debuggee, wait for the GDB prompt, and return incremental output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| timeout | No | ||
| max_output_bytes | No | Optional maximum returned output size in bytes. Keeps the tail with a truncation marker. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| completion_reason | Yes | ||
| saw_prompt | Yes | ||
| timed_out | Yes | ||
| session_exited | Yes | ||
| at_prompt | Yes | ||
| command_pending | Yes | ||
| needs_interrupt | Yes | ||
| bytes | Yes | ||
| duration_ms | Yes | ||
| truncated | Yes | ||
| omitted_bytes | Yes | ||
| internal_buffer_bytes | Yes | ||
| interrupted | Yes |