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
| Name | Required | Description | Default |
|---|---|---|---|
| gdb_session_id | Yes | Active GDB session (program must be stopped at crash). | |
| lsp_session_id | Yes | Active LSP session for the project. | |
| max_frames | No | Maximum backtrace frames to analyze. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |