KGDB

KGDB
Original author(s) Dave Grothe
Developer(s) Jason Wessel
Operating system Linux
Type Debugger
License GNU General Public License
Website http://kgdb.wiki.kernel.org

KGDB is a debugger for the Linux kernel. It requires two machines that are connected via a serial connection. The serial connection may either be an RS-232 interface using a null modem cable, or via the UDP/IP networking protocol (KGDB over Ethernet, KGDBoE).

KGDB was originally implemented as a patch to Linux kernel, but it has been included in the official kernel in 2.6.26. The target machine (the one being debugged) runs the patched kernel and the other (host) machine runs gdb. The GDB remote protocol is used between the two machines.

KGDB is available for the following architectures: x86, x86-64, PowerPC, ARM, MIPS, and S390.

It is free software released under the terms of the GNU General Public License. Until 2006 kgdb was maintained by Linsyssoft Technologies., after which Jason Wessel at Wind River Systems, Inc. took over as the official maintainer.

Ingo Molnar and Jason Wessel created a slimmed-down and cleaned up version of KGDB which was called "kgdb light" (without Ethernet support and many other hacks). This was the one merged into the 2.6.26 kernel.[1] The version of kgdb in the 2.6.26 kernel supports only rs232 using a driver which can split debugger inputs and console inputs such that only a single rs232 port is required.

Jason Wessel created a kgdb test suite which was merged into the 2.6.26 kernel in order to regression test the kgdb core as well as to aid in the validation of future architecture support for kgdb.

FreeBSD

A program named kgdb is also used by FreeBSD. It is a gdb based utility for debugging kernel core files[2]. It can also be used for remote "live" kernel debugging, much in the same way as the Linux KGDB, over either a serial connection or a firewire link[3].

External links

References

  1. ^ Kgdb Light | KernelTrap
  2. ^ FreeBSD kgdb man page
  3. ^ FreeBSD handbook: remote KGDB