~/talk

Boost your C/C++ Developer's Debugging Powers with GDB

Talkat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
links:none on file
slides:none on file

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

  1. 0:00GDB introduction
  2. 1:13Debugging beyond errors
  3. 6:30Basic GDB commands
  4. 13:33Stepping functions
  5. 23:10Advanced GDB techniques
  6. 26:23Stack frames navigation
  7. 31:44Segmentation faults
  8. 41:08Core dumps debugging
  9. 45:23Advanced printing
  10. 51:49Debug print features
  11. 1:07:20Time travel debugging
  12. 1:23:51GDB scripting
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.