Kernel (for 2.6) debugging or module debugging
kgdb is a kernel patch that, once applied, allows for the use of the familiar gdb interface for source-level debugging of a running Linux kernel.
The kgdb patch supplies the kernel with a debugging stub. This stub uses gdb remote serial/Ethernet protocol to communicate with gdb (host machine). This patch is applied to the kernel on the machine that will run the gdb session (host machine).
The gdbmod for module debugging, gdbmod version of gdb is required to debug modules that are loaded dynamically on to the testing machine.
Download kgdb and gdbmod patch from:
http://kgdb.linsyssoft.com/downloads.htm
http://www.linuxjournal.com/article/4525
Reference
Gdb quick ref guide.
http://users.ece.utexas.edu/~adnan/gdb-refcard.pdf
Simple how to
http://www.shakthimaan.com/downloads/glv/kgdb-howto/kgdb-howto.html
Comments