Skip to main content
Glama
sbergeron42

gdb-multiarch-mcp

by sbergeron42

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
NameRequiredDescriptionDefault

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")
  • 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,
    ),
  • The handler in the main server loop calls `session.step()` when the `gdb_step` tool is invoked.
    elif name == "gdb_step":
        result = session.step()

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