Date: Tue, 10 Jan 2006 15:47:52 +0000 From: Tofik Suleymanov <tofik@oxygen.az> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: Re: kernel debugging question Message-ID: <43C3D728.10008@oxygen.az> In-Reply-To: <20060107213025.GB2175@flame.pc> References: <43BFF797.9070600@oxygen.az> <20060107213025.GB2175@flame.pc>
next in thread | previous in thread | raw e-mail | index | archive | help
Giorgos Keramidas wrote: >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"); > > > Thank you :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C3D728.10008>