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
>>> to attach to the process and somehow find out which code it is executing
>>> (with remote debugging or ddb)?
>>
>> kld debugging is a bit tricky.  Take a look at the debugging macros and
>> bits that Greg Lehey put together for vinum for a starting point. You have
>> to calculate the appropriate offset to get to the KLD code in gdb.
>
> I already did this. I hope that I can find a way to know which process is
> running which part of the KLD code endlessly.

There are other macros in my .gdbinits which give you backtraces of
other processes.

Greg
--
Finger [EMAIL PROTECTED] for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to