Skip to main content
Glama
sbergeron42

gdb-multiarch-mcp

by sbergeron42

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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")
  • 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,
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sbergeron42/gdb-multiarch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server