关于
GDB provides a lightweight MCP server designed to run directly within GDB, enabling external applications to programmatically control and interact with the debugger. It exposes a single, powerful tool, `gdb-command`, which accepts any GDB command as input and returns its textual output. This facilitates seamless automation, allowing for integration with scripting environments, custom debugging interfaces, or other tools that require precise GDB control over an SSE connection.
主要功能
- Execute any GDB command and capture its output via `gdb-command`.
- 0 GitHub stars
- Minimal and self-contained script loaded directly into GDB.
- Runs an SSE server for real-time communication with MCP clients.
- Leverages GDB's embedded Python for core functionality.
- Easy integration by sourcing the script within GDB or `~/.gdbinit`.
使用案例
- Integrating GDB into continuous integration (CI) pipelines for automated testing and analysis.
- Automating complex GDB debugging sessions from external scripts or applications.
- Developing custom graphical user interfaces (GUIs) or extensions that interact with GDB programmatically.