~/talk

Using Serial kdb / kgdb to Debug the Linux Kernel

links:none on file
slides:none on file

Serial kdb provides a text prompt on a device console and kgdb exposes a gdb server over a serial port; the demo boots a Chromebook, provokes crashes, uses dump_all and backtraces to capture all stacks, attaches a cross-compiled gdb via a KDMX PTY, and loads module symbols with LX scripts for module symbols so gdb shows C frames. Practical limits appear: kgdb can’t stop CPUs with interrupts disabled and optimized-out variables often require frame-walking or address-offset tricks.

AI-written summary · about

  1. 0:00Start
  2. 2:34Syllabus
  3. 7:37What is kgdb good at?
  4. 12:33Getting setup - need a serial port
  5. 13:41Getting setup - kdmx
  6. 17:20Getting setup - kernel config
  7. 20:11Dropping into the debugger
  8. 23:34Debugging your first problem
  9. 29:16Demo: kgdb attaching
  10. 52:34Demo: Debugging a 2nd crash (1)
  11. 54:03Demo: Debugging a 2nd crash (2)
~/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.