Subject: Re: kernel postmortem?
To: John Valdes <j-valdes@uchicago.edu>
From: Frederick Bruckman <fb@enteract.com>
List: port-mac68k
Date: 05/26/1999 10:03:16
On Wed, 26 May 1999, John Valdes wrote:
> Does NetBSD/mac68k have any tools for analyzing the core files created
> by savecore? gdb doesn't seem to recognize them as core file, and I
> couldn't find dbx or adb...
I'm not experienced with this, but it can be done with gdb:
(gdb) set target kcore /dev/mem
No symbol table is loaded. Use the "file" command.
(gdb) file /netbsd
Reading symbols from /netbsd...(no debugging symbols found)...done.
(gdb) info var tickadj
All variables matching regular expression "tickadj":
Non-debugging symbols:
001660fc tickadj
replacing /dev/mem with the path to a core file (or /dev/kmem). Works
even better if you have built a kernel with "makeoptions DEBUG=-g" to
get the debugging symbols from.
gdb has interactive help (type "help"), a man page, and there's also
"info gdb".
There is also a dev/ddd package. I'm curious to know how well that
works for the mac.