decode_addresses
Convert hex code addresses from ESP-IDF backtraces into function names, file:line locations, and inline frames using addr2line for firmware crash analysis.
Instructions
Symbolise code addresses (function, file:line, inlining) with the toolchain's addr2line. For a 'Backtrace: PC:SP PC:SP' line only the PCs are decoded.
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": {
"addresses": "<addresses>"
},
"name": "decode_addresses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf | No | ||
| addresses | Yes | Any text containing hex addresses, e.g. a 'Backtrace:' line | |
| project_dir | No |