gdb_step
Execute the next instruction in the debugging session for Nintendo Switch executables to analyze code flow and identify issues.
Instructions
Step into the next instruction.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The `step` method in `GDBSession` class sends the `-exec-step` command to GDB, which implements the step-into logic.
def step(self) -> dict[str, Any]: """ Step into (single source line, entering functions). Waits for the step to complete before returning. The (gdb) prompt indicates GDB is ready for subsequent commands. Returns: Dict with status and execution result """ return self.execute_command("-exec-step") - src/gdb_multiarch_mcp/server.py:304-308 (registration)The `gdb_step` tool is registered here with its description and input schema.
Tool( name="gdb_step", description="Step into the next instruction.", inputSchema=NO_ARGS_SCHEMA, ), - src/gdb_multiarch_mcp/server.py:503-504 (handler)The handler in the main server loop calls `session.step()` when the `gdb_step` tool is invoked.
elif name == "gdb_step": result = session.step()