Hi Tao Jie.

While booted, you can check for existence of variables declared only if 
DEBUG is set on.

You can use the following command:
    /usr/ccs/bin/nm /dev/ksyms | grep <variable-you-want-to-check>

Using mdb, you can also check the value of variables which are different 
depending on DEBUG.  For example,  kmem_flags is set to 0 when DEBUG is 
not set, and to 0xF when DEBUG is set.

# mdb -k
Loading modules: [...]
 > kmem_flags/D
kmem_flags:
kmem_flags:     0        

    I hope that helps,
    Jack

陶捷 Tao Jie wrote:
> btw, How can I determine whether the ON is a debug version or a
> non-debug version, if it is not built by myself and I only have the
> "Install.i86pc.tar" tarball?
>
> 1, Before I bootup this ON, what could I do?
> &
> 2, When this ON is running, what could I do?
>
> Thanks :)
>
>   

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to