~/talk

How Debuggers Work

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [rust]
name:Sy Brand
slides:none on file

Breakpoints work by mapping source lines to machine addresses via DWARF line tables and then stopping the process either by writing an 0xCC int3 software breakpoint into the running code or by programming one of the four hardware debug registers (read/write/execute) with prace calls on x64 Linux. Stack unwinding uses DWARF CFI tables, expression evaluation sets registers/stack per the System V ABI to call functions in-process, and shared libraries notify debuggers via the debug rendezvous link map.

AI-written summary · about

  1. 0:00Debuggers introduction
  2. 1:27Debug architecture components
  3. 5:02Breakpoints under the hood
  4. 14:05Watch points and hardware breakpoints
  5. 18:02Stepping code levels
  6. 21:12Stack unwinding and call frames
  7. 27:59Reading variables and memory
  8. 31:12Calling functions in process
  9. 39:01Debugging shared libraries
  10. 44:27Debugging embedded JTAG
  11. 57:04Q&A
~/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.