From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 4 02:42:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D8BE16A4CE for ; Wed, 4 Feb 2004 02:42:50 -0800 (PST) Received: from thebsh.namesys.com (thebsh.namesys.com [212.16.7.65]) by mx1.FreeBSD.org (Postfix) with SMTP id 02BC743D48 for ; Wed, 4 Feb 2004 02:42:45 -0800 (PST) (envelope-from Nikita@Namesys.COM) Received: (qmail 22433 invoked from network); 4 Feb 2004 10:42:43 -0000 Received: from laputa.namesys.com (212.16.7.124) by thebsh.namesys.com with SMTP; 4 Feb 2004 10:42:43 -0000 Received: by laputa.namesys.com (Postfix on SuSE Linux 8.0 (i386), from userid 511) id 9743E416D4; Wed, 4 Feb 2004 13:42:41 +0300 (MSK) From: Nikita Danilov MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16416.52385.492153.911070@laputa.namesys.com> Date: Wed, 4 Feb 2004 13:42:41 +0300 To: "M. Warner Losh" In-Reply-To: <20040203.132334.88004112.imp@bsdimp.com> References: <401FD0C6.3000606@spinnakernet.com> <20040203.132334.88004112.imp@bsdimp.com> X-Mailer: VM 7.17 under 21.5 (beta16) "celeriac" XEmacs Lucid cc: schellap@spinnakernet.com cc: freebsd-hackers@freebsd.org Subject: Re: Kernel Debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 10:42:50 -0000 M. Warner Losh writes: > In message: <401FD0C6.3000606@spinnakernet.com> > Sridhar Chellappa writes: > : How do we debug a freeBSD kernel ? Do we have something similar to > : "KGDB" that linux offers ? > > Ironically, we've had kgdb for a number of years longer than Linux. > Actually, it is ironic that linux has a in-kernel debugger given > Linus' strong resistance to it for years. As a matter of fact, kgdb is not part of the "mainline" kernel maintained by Linus. It is available as a separate patch(-set), included, for example, into -mm series. > > There's also ddb that can be used for a lower level of debugging w/o > the need for a serial console. > > Warner Nikita.