gdb_batch
Run one-shot symbol-level STM32 debugging through J-Link GDB Server, executing batch GDB commands for backtraces, registers, memory reads, and disassembly, then stopping the server.
Instructions
One-shot symbol-level debug via J-Link GDB Server / 无 VSCode 的符号级调试.
Spawns JLinkGDBServer if the port is free, runs arm-none-eabi-gdb -batch with -ex commands (bt / info registers / x / disassemble), then stops the server. Stop runtime monitor first (hardware is exclusive).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "gdb_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| commands | No | ||
| elf_path | No | ||
| chip_name | No | ||
| interface | No | SWD | |
| timeout_s | No | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||