gdb-cli

Analyzes core dumps and attaches to running processes with GDB for C/C++ debugging.

Updated Aug 19, 2025
One-click install
npx skills add https://github.com/hoainam183/GR --skill gdb-cli-hoainam183
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gdb-cli
Source: https://github.com/hoainam183/GR/tree/main/src/RAG_v2/frontend/chat-companion/.agent/skills/gdb-cli
Command: npx skills add https://github.com/hoainam183/GR --skill gdb-cli-hoainam183

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gdb-cli, and includes scripts (resource) components.

What problem does it solve?

This Skill provides AI-assisted debugging for C/C++ programs using GDB, addressing the complexities of analyzing core dumps, debugging live processes, and investigating crashes and deadlocks with source code correlation.

Core Features & Use Cases

  • Core Dump Analysis: Analyze core dumps or crash dumps for insights.
  • Live Process Debugging: Debug running processes with GDB attach.
  • Crash Investigation: Investigate crashes, deadlocks, or memory issues.
  • Source Code Correlation: Correlate source code with runtime state.
  • Use Case: A developer can use this Skill to debug a C/C++ application that is crashing due to a null pointer dereference.

Quick Start

Run 'gdb-cli load --binary ./myapp --core /tmp/core.1234' to start debugging a core dump from 'myapp'.

Frequently Asked Questions about gdb-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a C++ core dump for a null pointer crash?

To analyze a C++ core dump, use gdb-cli to load the binary and core file, allowing automated steps to gather initial information, investigate crashes, and correlate source code with runtime state.

Can I attach GDB to a running C/C++ process to investigate a deadlock?

Yes, you can attach GDB to a running C/C++ process to investigate deadlocks, memory issues, and crashes, utilizing automated deep investigation and source code correlation.

What GDB version is required for AI-assisted debugging of C programs?

AI-assisted debugging of C programs requires GDB 9.0 or higher with Python support to execute automated debugging steps, gather information, and manage debugging sessions.

How does source code correlation work during crash investigation in GDB?

Source code correlation in GDB works by mapping the runtime state gathered from core dumps or live processes directly to the C/C++ source code, providing insights into crashes and memory issues.

What is the best way to start debugging a core dump from a C++ application?

The best way to start debugging a core dump is running 'gdb-cli load --binary ./myapp --core /tmp/core.1234', which initializes an AI-assisted session to analyze the crash and correlate source code.