stm32_run_gdb_script
Execute automated GDB commands against a target STM32 MCU to inspect registers, memory, and backtraces, enabling scripted debugging and control of remote debug sessions.
Instructions
Executes an automated GDB batch session against target MCU using arm-none-eabi-gdb.
Args: commands: List of GDB commands (e.g. ['monitor reset halt', 'info registers', 'bt']). elf_file: Optional path to compiled .elf file with debug symbols. remote_port: Port of active GDB server (connects to localhost:). timeout_sec: Maximum execution timeout in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| elf_file | No | ||
| remote_port | No | ||
| timeout_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |