kernel debugging question
Tofik Suleymanov
tofik at oxygen.az
Tue Jan 10 05:46:21 PST 2006
Giorgos Keramidas wrote:
>On 2006-01-07 17:17, Tofik Suleymanov <tofik at oxygen.az> wrote:
>
>
>>Reading through http://www.netbsd.org i've met this:
>>
>> Forcing code to enter DDB
>>
>>Ensure your kernel config file contains '|options DDB|', the file has
>>'|#include "opt_ddb.h"|', then use '|Debugger()|'.
>>
>>...
>>
>>Does this work on FreeBSD also ?
>>
>>
>
>This is slightly different in FreeBSD. You have to call:
>
> #include <sys/kdb.h>
>
> kdb_enter(NULL); /* Enter without a message */
>
>or
>
> #include <sys/kdb.h>
>
> kdb_enter("Forced into debugger by Giorgos");
>
>
>
Thank you :)
More information about the freebsd-questions
mailing list