Skip to main content
Glama
sbergeron42

gdb-multiarch-mcp

by sbergeron42

switch_no_op

Replace an instruction with a NOP at a specified offset from main to disable code execution during debugging of Nintendo Switch executables.

Instructions

NOP the instruction at the given offset from main. Writes ARM64 NOP (0xD503201F) at $main+offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetYesOffset into main executable (hex, e.g. '0x3a5f10' or '3a5f10')

Implementation Reference

  • The handler for the 'switch_no_op' tool, which executes the 'no_op' command on the gdb session.
    elif name == "switch_no_op":
        a = OffsetArgs(**arguments)
        result = session.execute_command(f"no_op {a.offset}")
  • The registration of the 'switch_no_op' tool in the MCP server.
    Tool(
        name="switch_no_op",
        description=(
            "NOP the instruction at the given offset from main. "
            "Writes ARM64 NOP (0xD503201F) at $main+offset."
        ),
        inputSchema=OffsetArgs.model_json_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