What problem does it solve?
Guides developers to find and fix crashes, hangs, memory corruption, and logic errors in native C and C++ programs by using interactive and non-interactive GDB workflows for live processes, core dumps, and remote targets.
Core Features & Use Cases
- Breakpoint management including conditional, temporary, regex, and address breakpoints to isolate faulty code paths.
- State inspection with variable printing, memory examination, register views, and full or per-thread backtraces to pinpoint failure context.
- Advanced workflows such as reverse debugging (record/replay), remote debugging with gdbserver, multi-threaded inspection and scheduler locking, and Python-based pretty-printers and scripting for custom data views.
- Use case: investigate a production segfault by loading a core file, inspecting the backtrace and frame variables, setting watchpoints to detect memory corruption, or attaching to a remote embedded target via gdbserver.
Quick Start
Start a GDB session for your built binary, set a breakpoint at main, run the program with its arguments, and show a full backtrace when it crashes.