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 (GCC/Clang). Use or for most debuggable code. For release buil…