~/talk

What Really Happens When You Hit a Breakpoint

Talkat GOTO Copenhagen 2025 · 2025-09-29..10-03· [developer-experience]
name:Sy Brand
slides:none on file

Explains concrete debugger mechanics on Linux: using ptrace syscalls to read memory and registers, replacing a byte with INT3 (0xCC) for software breakpoints, and using the four hardware debug registers (DR0–DR3 + DR7) for watchpoints that break on reads/writes. Covers DWARF line and call-frame data for mapping source to addresses and unwinding, single‑stepping to restore and reinsert breakpoints, and using the System V ABI and mangled names to fabricate in‑process C++ function calls.

AI-written summary · about

  1. 0:00Intro
  2. 0:46What kind of debuggers?
  3. 1:16Agenda
  4. 1:46Debug scenario architecture
  5. 3:22Manipulating memory
  6. 6:09Breakpoints
  7. 14:38Watchpoints
  8. 17:13Stepping
  9. 21:08Stack unwinding
  10. 29:39Reading a variable
  11. 35:12Calling a function
  12. 41:02Summary
  13. 41:24Outro
~/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.