Skip to main content
Glama

gdb_continue

Resume program execution in a GDB debugging session by specifying the session ID. Integrates with MCP GDB Server for efficient debugging management through natural language commands.

Instructions

Continue program execution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesGDB session ID

Implementation Reference

  • The handler function that implements the gdb_continue tool logic. It validates the session ID, sends the 'continue' command to the GDB process via executeGdbCommand, and returns the output or an error response.
    private async handleGdbContinue(args: any) { const { sessionId } = args; if (!activeSessions.has(sessionId)) { return { content: [ { type: 'text', text: `No active GDB session with ID: ${sessionId}` } ], isError: true }; } const session = activeSessions.get(sessionId)!; try { const output = await this.executeGdbCommand(session, "continue"); return { content: [ { type: 'text', text: `Continued execution\n\nOutput:\n${output}` } ] }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [ { type: 'text', text: `Failed to continue execution: ${errorMessage}` } ], isError: true }; } }
  • Input schema definition for the gdb_continue tool, specifying that a 'sessionId' string is required.
    inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'GDB session ID' } }, required: ['sessionId'] }
  • src/index.ts:375-376 (registration)
    Tool call routing in the CallToolRequestSchema handler switch statement, dispatching gdb_continue calls to the handleGdbContinue method.
    case 'gdb_continue': return await this.handleGdbContinue(request.params.arguments);
  • src/index.ts:205-218 (registration)
    Tool registration in the ListToolsRequestSchema response, defining name, description, and input schema for gdb_continue.
    { name: 'gdb_continue', description: 'Continue program execution', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'GDB session ID' } }, required: ['sessionId'] } },

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/signal-slot/mcp-gdb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server