Walks Claude through interactive GDB sessions from basic breakpoints to reverse debugging and remote gdbserver workflows. Covers the essentials like stepping, inspecting variables, and multi-threaded debugging, plus less common terrain like Intel Processor Trace replay and conditional watchpoints. The command tables are dense enough to be reference material. Most useful when you're debugging a segfault or trying to diagnose a race condition and need Claude to suggest the right GDB invocations instead of generic advice. The prerequisite section on compiling with debug symbols will save you from the usual "no symbol table" frustration.

skills.sh installs
1K
GitHub stars
279
last updated
Aug 21, 2026

Install

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill gdb --agent claude-code

Installs into .claude/skills of the current project.

Files

GDB

Purpose

Walk agents through GDB sessions from first launch to advanced workflows: crash diagnosis, reverse debugging, remote debugging, and multi-thread inspection.

Triggers

  • "My program segfaults / crashes — how do I debug it?"
  • "How do I set a breakpoint on condition X?"
  • "How do I inspect memory / variables in GDB?"
  • "How do I debug a remote embedded target?"
  • "GDB shows ?? frames / no source"
  • "How do I replay a bug deterministically?" (record/replay)

Workflow

1. Prerequisite: compile with debug info

Always compile with -g (GCC/Clang). Use -Og or -O0 for most debuggable code.

gcc -g -Og -o prog main.c

For release builds: use -g -O2 and keep the binary with symbols (strip separately with objcopy).

2. Start GDB

gdb ./prog                          # load binary
gdb ./prog core                     # load with core dump
gdb -p 12345                        # attach to running process
gdb --args ./prog arg1 arg2         # pass arguments
gdb -batch -ex 'run' -ex 'bt' ./prog  # non-interactive (CI)

3. Essential commands

Sponsors

Details

Repository
github.com/mohitmishra786/low-level-dev-skills
Categories
Debugging, Python
First seen
Jun 3, 2026

More from mohitmishra786/low-level-dev-skills

All 54

Recommended

More Debugging
1orchestra-research avatarml-training-recipesorchestra-research/ai-research-skillsBattle-tested PyTorch training recipes for all domains — LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers train996skills.sh installs
2delexw avataroxlintdelexw/claude-code-miscRun and configure oxlint — the high-performance JavaScript/TypeScript linter built on the Oxc compiler stack. Use this skill whenever working in a project that 963skills.sh installs
3existential-birds avatarpython-code-reviewexistential-birds/beagleReviews Python code for type safety, async patterns, error handling, and common mistakes. Use when reviewing .py files, checking type hints, async/await usage, 928skills.sh installs
4ailabs-393 avatartest-specialistailabs-393/ai-labs-claude-skillsThis skill should be used when writing test cases, fixing bugs, analyzing code for potential issues, or improving test coverage for JavaScript/TypeScript applic904skills.sh installs
5jezweb avatarnemoclaw-setupjezweb/claude-skillsInstall and configure NVIDIA NemoClaw (sandboxed OpenClaw agent platform) on Linux. Handles cloudflared tunnels, Docker cgroup fixes, OpenShell, sandbox creatio902skills.sh installs
6yeachan-heo avataromc-doctoryeachan-heo/oh-my-claudecodeDiagnose and fix oh-my-claudecode installation issues891skills.sh installs