~/talk

How C++ Debuggers work

Talkat Meeting C++ 2017 · 2017-11-09..11-11· [open-source]
links:none on file
slides:none on file

Explains how debuggers actually work on x86 Linux: parses ELF and DWARF to map source to addresses, sets software breakpoints by writing 0xCC into the instruction stream and restoring the byte on continue, uses ptrace and process_vm_readv for registers and memory, implements stepping by single-step or by setting return-address breakpoints, exposes a GDB remote text packet protocol, notes four hardware debug registers limit and shows a working Linux-debugger-from-scratch blog series.

AI-written summary · about

  1. 0:00Introduction
  2. 4:00Architecture
  3. 7:55Brief overview
  4. 9:07Software breakpoints
  5. 16:40Mapping
  6. 17:47Stepping
  7. 22:37Second Winding
  8. 24:47Expression Evaluation
  9. 29:15PTrace
  10. 30:30Breakpoints
  11. 33:19Remote Debugging
  12. 35:32Debug Packets
  13. 39:41Reversible Debugging
~/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.