symbol_info
Resolve C symbols and nested expressions against a firmware ELF to get address, size, and type, replacing header grepping and manual GDB lookups.
Instructions
Resolve C expressions against the firmware ELF — the one-call replacement for grepping headers and hand-running GDB.
Args: elf_path: Path to the firmware .elf. expressions: A single expression or a JSON array of them. Accepts plain symbols ("g_app") and C paths with dots and array indices ("g_app.scheduler.taskCount", "g_app.scheduler.tasks[3].lastRunMs").
Returns: One line per expression: address, size, and type. Type tells float vs int vs enum vs struct — use it to pick the right live_memory/display treatment. Struct-typed entries note that sub-fields resolve as ".".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf_path | Yes | ||
| expressions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |