Date: Sat, 7 Jan 2006 23:30:25 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Tofik Suleymanov <tofik@oxygen.az> Cc: freebsd-questions@freebsd.org Subject: Re: kernel debugging question Message-ID: <20060107213025.GB2175@flame.pc> In-Reply-To: <43BFF797.9070600@oxygen.az> References: <43BFF797.9070600@oxygen.az>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-01-07 17:17, Tofik Suleymanov <tofik@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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060107213025.GB2175>