mdb -k is useful for examining the state of a running kernel, but can't be
used to set breakpoints or stop threads -- it's just a process executing on
the running system.

Your options are to use kmdb either by booting -k (man kmdb) or by running
mdb -K to load kmdb (on the console), or to use DTrace which is great for
examining the state and flow of control of your device driver.

Adam

On Tue, Jun 26, 2007 at 03:23:56PM +0800, borun_fu wrote:
> I build a driver and attached it into the kernel.
> I use "mdb -k" and want to set breakpoint so I can follow the call routing.
> But the command "address:b" always failed! What's the problem?
> How to debug driver in solaris?  Any hints is welcome.
> _______________________________________________
> mdb-discuss mailing list
> mdb-discuss at opensolaris.org

-- 
Adam Leventhal, Solaris Kernel Development       http://blogs.sun.com/ahl

Reply via email to