> snow wrote:
> > Thanks.But I don't know how to start kmdb
> 
> 

Thank you for your suggestion.
> This is much more risky than the alternatives
> (dtrace, a printf in your module, deducing the
> execution
> of your module because it must have been written to
> do
> something useful).
I type dtrace from the syatem command and get the error:command not found 
> man kmdb
> 
> will provide the details.
> 
> the summary is:
> 
> as root utter:
> mdb -K
> (you will get the kmdb prompt)
> your_module_symbol:b
Sorry,I can't catch your point.and I do mymod:b,but I got such error:
mdb:failed to dereference symbol:unknow symbol name.
I have no idea.
> :c

> you now have a breakpoint set at your_module_symbol.
> When the instruction at that that address is
> executed,
> kmdb will be re-entered with a message indicating
> that
> you hit the breakpoint.
> 
> You can remove the breakpoint by uttering
> 
> your_module_symbol:d
> :c
> 
> which will remove the breakpoint and continue.
> 
> -sarito
> 
> 
> >  
> >  
> > This message posted from opensolaris.org
> > _______________________________________________
> > opensolaris-code mailing list
> > opensolaris-code@opensolaris.org
> >
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
> >   
> 
> _______________________________________________
> opensolaris-code mailing list
> opensolaris-code@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
>
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to