Sparcstation 1 kernel dump

Jeffrey Zank - SBus Software jeffz at sun.com
Wed May 30 02:14:15 AEST 1990


| I am writing a device driver for a Sun Sparcstation 1 running SunOS 4.0.3.
| Every now and then I get a kernel bus fault and am trying to debug it with
| an event log which I compiled into the kernel.  I would like to write a
| program which analyzes the kernel coredump and prints this event log.  I
| can find the virtual address of my event log using adb.  The problem is
| that the event log (along with my driver) is dynamically loaded and I
| don't know how to map kernel virtual addresses to coredump offsets.  Does
| anybody have the answer?

First off, have you tryed kadb() as an environment for debugging your
driver.  This way you do not need to dump out your coredump and try to
interperpt the data.  If you have large data structures to de-bug then you
might want to write a "adb macro" to print it out (see /usr/lib/adb for
examples).



More information about the Comp.sys.sun mailing list