Hi,
2007/5/23, snow <[EMAIL PROTECTED]>:
> 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
Obviously it is not installed. You can install it from the
installation dvd using pkgadd.
> 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.
You will probably need to give a symbol name here, not the name of
your module. A symbol name would be for example the name of a function
inside your module.
Thomas
> :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
> > [email protected]
> >
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
> >
>
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
>
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code