Linux Kernel Debugging
By Dean A. Gereaux, November 01, 2005
Source Code Accompanies This Article. Download It Now.
Dean explains how to debug drivers with Linux Kernel Debugger, add hooks into KDB from your drivers, and create KDB modules.
November, 2005: Linux Kernel Debugging
Entering kdb (current=0xc0355f80, pid 0) on processor 0 due to Keyboard Entry 0]kdb> ?
Command Usage Description
------------------------
md <vaddr> Display Memory Contents, also mdWcN, e.g. md8c1
mdr <vaddr> <bytes> Display Raw Memory
<-- snip more commands than shown here -->
be <bpnum> Enable Breakpoint
bd <bpnum> Disable Breakpoint
ss Single Step
ssb Single step to branch/call
pt_regs address Format struct pt_regs
tkdata_drv [num lines] Dumps tank datum array (from drv)
tkthrd_drv Display tank thread state (from drv)
tankdata [num lines] Dumps tank datum array
tankthrd Display tank thread state
[0]kdb>
Figure 1: Help command.