switch_print_trace
Generate a combined trace showing current PC offset, calling offset, and full backtrace with offsets relative to main for Nintendo Switch debugging.
Instructions
Combined trace: runs get_pc, localize $lr, and my_bt2 in one command. Returns the current PC offset, calling offset, and full backtrace with offsets relative to main.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/gdb_multiarch_mcp/server.py:557-558 (handler)The handler for the 'switch_print_trace' tool, which executes the 'print_trace' GDB command.
elif name == "switch_print_trace": result = session.execute_command("print_trace") - src/gdb_multiarch_mcp/server.py:407-415 (registration)Registration of the 'switch_print_trace' tool within the server definition.
Tool( name="switch_print_trace", description=( "Combined trace: runs get_pc, localize $lr, and my_bt2 in one command. " "Returns the current PC offset, calling offset, and full backtrace " "with offsets relative to main." ), inputSchema=NO_ARGS_SCHEMA, ),