Re: kernel debugging suggestion needed

2001-01-05 Thread Doug Rabson
On Tue, 2 Jan 2001, Doug White wrote: On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it is

kernel debugging suggestion needed

2001-01-02 Thread Zhiui Zhang
I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it is executing (with remote debugging or ddb)? Thanks for your help. -Zhihui To

Re: kernel debugging suggestion needed

2001-01-02 Thread Doug White
On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it is executing (with remote debugging or ddb)?

Re: kernel debugging suggestion needed

2001-01-02 Thread Andrew R. Reiter
[Sorry for lack of message in this reply but I accidently rm'd the original emails to reply to :-) ] One thing I've done in the past is if it's convenient in a section of code to hijack a function pointer in the kernel, then hijack it so that it will call your code... Silly, and not always

Re: kernel debugging suggestion needed

2001-01-02 Thread Greg Lehey
On Tuesday, 2 January 2001 at 14:03:16 -0800, Doug White wrote: On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find

Re: kernel debugging suggestion needed

2001-01-02 Thread Zhiui Zhang
On Tue, 2 Jan 2001, Doug White wrote: On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way to attach to the process and somehow find out which code it

Re: kernel debugging suggestion needed

2001-01-02 Thread Greg Lehey
On Tuesday, 2 January 2001 at 23:22:49 -0500, Zhiui Zhang wrote: On Tue, 2 Jan 2001, Doug White wrote: On Tue, 2 Jan 2001, Zhiui Zhang wrote: I have written a KLD and am debugging it. The program often hangs after runs for a while (I guess it enters into some dead loop). Is there a way