From owner-cvs-src@FreeBSD.ORG Sun Jul 25 17:59:14 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFD2916A4CE; Sun, 25 Jul 2004 17:59:14 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCA6C43D49; Sun, 25 Jul 2004 17:59:14 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id B50B05CA53; Sun, 25 Jul 2004 10:59:14 -0700 (PDT) Date: Sun, 25 Jul 2004 10:59:14 -0700 From: Alfred Perlstein To: Marcel Moolenaar Message-ID: <20040725175914.GX95729@elvis.mu.org> References: <200407250529.i6P5TFag021812@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407250529.i6P5TFag021812@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin/gdb/kgdb Makefile kgdb.1 kgdb.h kthr.c main.c trgt.c trgt_alpha.c trgt_amd64.c trgt_i386.c trgt_ia64.c trgt_sparc64.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2004 17:59:15 -0000 * Marcel Moolenaar [040724 22:29] wrote: > marcel 2004-07-25 05:29:15 UTC > > FreeBSD src repository > > Added files: > gnu/usr.bin/gdb/kgdb Makefile kgdb.1 kgdb.h kthr.c main.c > trgt.c trgt_alpha.c trgt_amd64.c > trgt_i386.c trgt_ia64.c trgt_sparc64.c > Log: > Add the beginnings of kernel debugging support. the kgdb(1) tool > is basicly a shell on top of libgdb that knows about kernel threads, > kernel modules and kvm(3). As the word "beginnings" implies, not > all of the features have been implemented yet. The tool is useful > and I'd like feedback on the taken route. > > The simplest way to debug a kernel core file is: > kgdb -n 0 > > This opens /var/crash/vmcore.0 with the corresponding kernel in > the object directory (kernel.debug is used if it exists). > > Typical things that need to be added are: > o Auto loading of kernel modules, Haev you seen grog's scripts that do this? They are in the 4.x source tree under src/sys/modules/vinum/.gdb* (i think) > o Handling of trapframes so that backtraces can be taken across > them, > o Some fancy commands to extract useful information out of a core > file, > o Various (probably many) other things. Cool thank you! -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684