From owner-cvs-lib Mon Oct 7 13:25:37 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA25870 for cvs-lib-outgoing; Mon, 7 Oct 1996 13:25:37 -0700 (PDT) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA25854; Mon, 7 Oct 1996 13:25:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.5/8.6.5) with SMTP id NAA20645; Mon, 7 Oct 1996 13:25:58 -0700 (PDT) Message-Id: <199610072025.NAA20645@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Peter Wemm cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libkvm kvm_i386.c In-reply-to: Your message of "Mon, 07 Oct 1996 13:17:52 PDT." <199610072017.NAA25130@freefall.freebsd.org> From: David Greenman Reply-To: dg@root.com Date: Mon, 07 Oct 1996 13:25:58 -0700 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >peter 96/10/07 13:17:51 > > Modified: lib/libkvm kvm_i386.c > Log: > Implement virtual-to-physical address mapping for the kvm library on > dead kernel debugging. The previous code was a "do nothing". > > The most obvious side effect of this is that you can now do things like > this and reasonably expect them to work: > dmesg -M /var/crash/vmcore.3 -N /var/crash/kernel.3 > ps -axl -M /var/crash/vmcore.3 -N /var/crash/kernel.3 > > A good deal of this was lifted from the gdb code to do this, as well as > from NetBSD's libkvm (which has completely different VM macros) Grrrr. I think this is the wrong direction to take this stuff and I intentionally didn't implement the above in the original port of the 4.4BSD code because of a strong desire to get away from user applications having intimate knowledge about kernel internals. I would have prefered that you just killed support for "dead" kernels entirely. In my opinion, such things as above should be done via gdb...and this was really easy before we lost generic scripting support with the "new improved" gdb last year. Grumble. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project