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
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | Offset into main executable (hex, e.g. '0x3a5f10' or '3a5f10') |
Implementation Reference
- src/gdb_multiarch_mcp/server.py:532-534 (handler)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}") - src/gdb_multiarch_mcp/server.py:352-359 (registration)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(), ),