Kernel (for 2.6) debugging- kgdb & 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. Configuring kgdb Download kgdb and gdbmod patch for your kernel version from http://kgdb.linsyssoft.com/downloads.htm Copy the patch to the kernel source directory on the development machine, and apply, Unzip the kgdb patch mkdir ${BASE_DIR}/patch-kgdb cd ${BASE_DIR}/patch-kgdb tar -jxvf linux-2.6.7-kgdb-2.2.tar.bz2 patch -p1 < ${BASE_DIR}/patch-kgdb/core-lite.patch patch -p1 < ${BASE
This is my dashboard for Linux notes, programs, Embedded Linux from porting to board bring up..and All about my learning on Linux.