Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Oct 1996 13:25:58 -0700
From:      David Greenman <dg@root.com>
To:        Peter Wemm <peter@freefall.freebsd.org>
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 
Message-ID:  <199610072025.NAA20645@root.com>
In-Reply-To: Your message of "Mon, 07 Oct 1996 13:17:52 PDT." <199610072017.NAA25130@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610072025.NAA20645>