Boost your C/C++ Developer's Debugging Powers with GDB
summary
Live demos use gcc/g++ and GDB with -g/-g3 and -fno-omit-frame-pointer to show concrete fixes: octal literals cause 1764/49 confusion, passing 150 into an 8-bit char overflows to negative, and a null deposit triggers a segfault recovered from a core dump. Demonstrations cover temporary and conditional breakpoints, dprintf injection for printf-style logging, frame navigation and modify/return to fake results, reverse execution with rr vs GDB recording, catch throw, pretty‑printers, TUI, and how to reproduce and fix each bug interactively.
AI-written summary · about
chapters (12)
- 0:00GDB introduction
- 1:13Debugging beyond errors
- 6:30Basic GDB commands
- 13:33Stepping functions
- 23:10Advanced GDB techniques
- 26:23Stack frames navigation
- 31:44Segmentation faults
- 41:08Core dumps debugging
- 45:23Advanced printing
- 51:49Debug print features
- 1:07:20Time travel debugging
- 1:23:51GDB scripting
related talks
52mGetting the Most Out of GDB
01h 27mBecome a GDB Power User
15mGive me 15 minutes & I'll change your view of GDB
01h 29mModern Linux C++ Debugging Tools - Under the Covers
57mModern Linux C++ debugging tools - under the covers
44mA Guide to Debugging C++ Code: Practical and Interactive Examples
29mLiberating the Debugging Experience with the GDB Python API
57mLessons from 20 years of Debugging C++ Code
