kernel debugging question

Giorgos Keramidas keramida at
Sat Jan 7 13:32:00 PST 2006

On 2006-01-07 17:17, Tofik Suleymanov <tofik at> wrote:
> Reading through 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 */


	#include <sys/kdb.h>

	kdb_enter("Forced into debugger by Giorgos");

More information about the freebsd-questions mailing list