debug_symbol
Resolve addresses, symbols, and source lines from an ELF without touching the target. Query an address for symbol+offset and line, a symbol for address/size/line, or file.c:42 for its address.
Instructions
Look up symbols without touching the target.
query: an address (0x100abc) -> symbol+offset and source line; a symbol or symbol+off -> its address, size and source line; or file.c:42 -> address. Uses the session's ELF (name=) or a standalone ELF path (elf=).
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": {
"query": "<query>"
},
"name": "debug_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf | No | ||
| name | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |