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
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | GDB session ID |
Implementation Reference
- src/index.ts:806-846 (handler)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 }; } }
- src/index.ts:208-217 (schema)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'] } },