zhijun wrote:
> Hi folks,
> One of my colleages met a panic at boot today,after he modified some
> kernel code for tcp.The panic occurrs in 'unix' module,at which point
> tcp is initialized.He would like to set a breakpoint at tcp init routine
> for debugging, but as unix is loaded immediately after kmdb, we don't
> have the chance to invoke kmdb at boot to set the breakpoint before tcp
> init function is called,thus the panic happens every time.
> Is there a way to set up a breakpoint early at boot such as this? If
> this is not the case,which is the best way for debugging this kind of
> problems?

Have him add "-kd" to the kernel arguments, he should drop into kmdb 
very soon and be able to set a breakpoint.

HTH
-- 
Michael Schuster        Sun Microsystems, Inc.
recursion, n: see 'recursion'

Reply via email to