Subject: Re: savecore/etc
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
Date: 06/28/1995 19:39:31
>> Now what the hell do I do with this [a kernel coredump from
>> savecore] if I'm interested in finding out exactly what blew up?
>> Use gdb on the saved kernel image and core?
> Good question.
> GDB likes user-land core files. They have a core header which gives
> the value of the PC and registers at the time of the core.
> A kernel core file is a raw dump of physical memory. You have 8 MB
> of RAM so you got an 8 MB core. There is no core header.
> Worse, this is _physical_ memory. [...MMU...]
Um, isn't this what gdb -k is all about? And besides, while the dump
written to the swap area may be just an image of core, doesn't savecore
do some massaging on it? I thought it did, but I haven't looked lately
so I could well be wrong.