mcp-gdb
23
The MCP GDB Server is designed to provide GDB debugging capabilities for AI assistants like Claude. It allows users to manage debugging sessions, execute commands, and examine code using various GDB functions integrated with MCP.
How do I start a GDB session?
Use the command gdb_start
to initiate a new debugging session.
How can I load a program into GDB?
Use the command gdb_load
with the path to your program and the sessionId from gdb_start
.
How do I set a breakpoint?
Use the command gdb_set_breakpoint
to set a breakpoint at a specific location in your code.
How can I examine variables during debugging?
Use the command gdb_print
to evaluate expressions or variables in the current context.
How do I terminate a GDB session?
Use the command gdb_terminate
to end the current debugging session.