Subject: crash dumps
To: None <tech-kern@NetBSD.ORG>
From: James Jegers <jimj@miller.cs.uwm.edu>
List: tech-kern
Date: 06/13/1995 18:27:59
I've been doing some playing around lately with the kernel and crash
dumps. I have gotten the scsi disk to do a crash dump, savecore to
read in the crashdump from the scsi disk's swap partition and save
it as a file in /var/crash(the other file put the is the kernel itself).
I'm now trying to run gdb on it(actually kgdb). So far I've gotten
kgdb to recognize the crash file and find/print out the panic
string that caused the kernel to crash.
I'm having a problem getting any farther. Gdb can't seem to find the
registers. It can find curproc, but all elements in curproc are
just 0, none of them contains data. Does anyone have a working gdb
for kernel? I saw the compiler option in the GENERIC makefile, but
is there nothing that can use it?
FreeBSD has a kgdb, which is an old version of gdb. I've tried compiling
the new gdb but that couldn't even debug regular programs.