Skip to main content
Glama
sbergeron42

gdb-multiarch-mcp

by sbergeron42

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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