switch_my_bt2
Generate a backtrace with offsets relative to the main base address for debugging Nintendo Switch executables, walking the frame pointer chain to resolve return addresses to module-relative offsets.
Instructions
Print the backtrace with offsets relative to the base of main. Walks the frame pointer chain and resolves each return address to a module-relative offset.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/gdb_multiarch_mcp/server.py:398-406 (registration)Registration of the "switch_my_bt2" tool in the tool definition list.
Tool( name="switch_my_bt2", description=( "Print the backtrace with offsets relative to the base of main. " "Walks the frame pointer chain and resolves each return address " "to a module-relative offset." ), inputSchema=NO_ARGS_SCHEMA, ), - src/gdb_multiarch_mcp/server.py:554-555 (handler)Handler implementation for the "switch_my_bt2" tool, which delegates to the GDB session's execute_command method.
elif name == "switch_my_bt2": result = session.execute_command("my_bt2")