exec_command
Execute any GDB command and return its output. Use for commands without a dedicated tool.
Instructions
Execute any GDB command and return its output. Escape hatch for commands without a dedicated tool.
Useful examples: info breakpoints — list all breakpoints set var x = 5 — modify a variable thread apply all bt — backtrace every thread catch syscall / catch throw advance location — run to a specific location in the current frame source /path/to/script.gdb attach PID core-file /path/to/core
IMPORTANT — any command that resumes the inferior (run, continue, step, next, finish, until, advance, jump, signal, return, and the rr reverse-* variants) will BLOCK until the inferior stops again. Output includes the stop reason, e.g.: [Stopped: breakpoint-hit, in main, at foo.c:10] Use the interrupt tool to unblock a running session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |