Become a GDB Power User
summary
Demos show concrete GDB tricks: use TUI mode for side-by-side source/disassembly, load Python scripts to build pretty-printers and automatic handlers, and attach hooks to events. Reversible debugging records every instruction (observed up to ~50,000× slowdown) so reverse-continue and a hardware watchpoint find an out‑of‑bounds write (index 33 into a 32 element array). Also covered: dynamic printf without editing code, fork/multi‑process follow modes, and saved command history.
AI-written summary · about
chapters (9)
- 0:00Debugging and GDB intro
- 3:02GDB TUI mode
- 9:55Python scripting in GDB
- 24:12Reversible debugging
- 37:04Multiprocess/multithread debugging
- 51:27Advanced watch/break points
- 1:00:06Dynamic print and catch points
- 1:15:27Optimization vs debug info
- 1:21:09Q&A
related talks
15mGive me 15 minutes & I'll change your view of GDB
52mGetting the Most Out of GDB
01h 26mBoost your C/C++ Developer's Debugging Powers with GDB
29mLiberating the Debugging Experience with the GDB Python API
01h 29mModern Linux C++ Debugging Tools - Under the Covers
20mHow Debuggers Work
08mData Breakpoints in Visual Studio Code
42mTime Travel Debugging - It’s Time to Debug Different
