On Fri, 15 Jun 2007, Paul Durrant wrote:

On 15/06/07, Paul Gamper <[EMAIL PROTECTED]> wrote:
Sorry i looked over 2 hours and i can't find.


The reason you can't find it is because it's not there ;-) There's no
such thing as debug 'mode'. If you want a DEBUG kernel then you have
to install one (find out about bfu from the website) or if you want to
debug specific things then you may find you can turn some helpful
stuff on (e.g. you can set kmem_flags to help memory debugging even
with a non-DEBUG kernel).

And you can boot with '-k' to load the kernel online debugger (kmdb) at boot time (although you can do that after booting with 'mdb -K' as well). You can even enter kmdb directly from boot and start fiddling with the kernel before startup - use the '-a' and/or '-h' boot options as well. Documentation on available boot options is in the boot(1M) manpage,

http://docs.sun.com/app/docs/doc/816-5166/6mbb1kpub?a=view

On GRUB, highlight the solaris line, then press 'E' to edit the entry, press 'E' again to edit the kernel like, and append the boot flags there.

The source that shows all the boot flags (documented and undocumented) is found here:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/krtld/kobj_bootflags.c

The big difference between a DEBUG and a 'normal' Solaris kernel is that a DEBUG kernel has ASSERT() compiled in, while those are missing in an ordinary kernel. All 'generic' debugging facilities (kmdb, crashdumps, kmem debugging, DTrace, ...) do not depend on the presence of a debug kernel.

Enjoy,
FrankH.


Paul

--
Paul Durrant
http://www.linkedin.com/in/pdurrant
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to