Skip to main content
Glama
William-An

cpp-debug-mcp

by William-An

diagnose_crash_site

Combine GDB backtrace with LSP static analysis from clangd to diagnose program crashes like SIGSEGV.

Instructions

Diagnose a crash by combining GDB backtrace with LSP static analysis.

When the program has stopped (e.g., SIGSEGV), this tool gathers:

  • Full backtrace from GDB

  • Local variables at the crash frame

  • Type information at each frame from clangd

  • Static diagnostics (warnings/errors) for relevant source files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gdb_session_idYesActive GDB session (program must be stopped at crash).
lsp_session_idYesActive LSP session for the project.
max_framesNoMaximum backtrace frames to analyze.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

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/William-An/cpp-debug-mcp'

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