debug_backtrace
Shows a kernel call stack by walking frame pointers or scanning for return addresses, helping diagnose execution paths in bare-metal QEMU debugging.
Instructions
Show the call stack.
mode "fp" walks the frame-pointer chain (exact, but only if the kernel was built with frame pointers, e.g. -fno-omit-frame-pointer); "scan" scans the stack for return addresses (works on -O2 kernels without frame pointers, x86 only, needs elf; may include stale frames); "auto" tries fp and falls back to scan if the chain is empty.
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": {
"name": "<name>"
},
"name": "debug_backtrace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| name | Yes | ||
| max_frames | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |