Jump to content

Kernel debugging

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sureshrecw (talk | contribs) at 15:09, 20 November 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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 is implemented as a patch to Linux kernel. 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, ppc, arm, mips, and s390.

A program named kgdb is also used by FreeBSD. It is a gdb based utility for debugging kernel core files.