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
[0]kdb> id kdb_TankDataArray [You can use a symbolic name or an address.]
0xdc1eab02: jno 0xdc1eab79
0xdc1eab04: gs
0xdc1eab05: jae 0xdc1eab7b
0xdc1eab07: push %ebx
0xdc1eab08: insb (%dx),%es:(%edi)
0xdc1eab09: popa
0xdc1eab0a: jbe 0xdc1eab71
0xdc1eab0c: sub %dl,0x53(%ecx)
0xdc1eab0f: je 0xdc1eab83
0xdc1eab11: imul $0x7453512c,0x67(%esi),%ebp
0xdc1eab18: jb 0xdc1eab83
0xdc1eab1a: outsb %ds:(%esi),(%dx)
0xdc1eab1b: addr16 sub $0x51,%al
0xdc1eab1e: push %ebx
0xdc1eab1f: je 0xdc1eab93
0xdc1eab21: imul $0x29,0x67(%esi),%ebp
[0]kdb>
Figure 2: Sample output of the KDB id command (x86 instruction set).