Subject: Re: Using adb on Solaris loadable kernel

From: [email-masked] (Casper H.S. Dik)
Date: 19 Nov 1993 08:54:16 GMT

[email-masked] (Daniel A. Fields) writes:

>Is it possible to use "adb" to examine variable in kernel modules on
>Solaris. How is this done.  Ive heard that the only satisfactory way to
>do it is to boot kadb and break into the debugger to examine variables.

It's actually quite easy:

	adb -k /dev/ksyms /dev/mem

This will let you examine the kernel while it's running.

There are limits to what you can get away with, but this
works essentially the same as under SunOS 4.x.

/dev/ksyms is the device that presents you with a snapshot of the
system's symbol table at the time you open it.
/kernel/unix does not include all symbols you may want to
examine.

Casper