~/talk

Getting the Most Out of GDB

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp, developer-experience]
links:none on file
name:Greg Law
linkedin:gregthelaw
slides:none on file

Shows how to use GDB’s TUI mode to view source and assembly, Python pretty-printers to format custom C/C++ structs, and a custom prompt that prints time and function. Demonstrates gdbserver + target remote for embedded-like debugging, conditional and regex breakpoints, watch -l for precise memory watches, multi-process inferiors with catch fork and follow-fork/detach settings, dynamic printf, calling functions from GDB, and time-travel debugging (record/reverse and rr/Intel branch tracing) to find an out‑of‑bounds write; recommends compiling with -g3.

AI-written summary · about

  1. 0:00Start
  2. 20:34Breakpoints
  3. 27:31Multiprocess Debugging
  4. 35:40thread apply
  5. 36:17calling inferior functions
  6. 37:43Reversible Debugging - how did that happen?
~/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.