From owner-freebsd-questions@FreeBSD.ORG Tue Jan 10 13:46:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 057E716A420 for ; Tue, 10 Jan 2006 13:46:21 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: from mail.alkar.net (mail.alkar.net [195.248.191.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2EB143D55 for ; Tue, 10 Jan 2006 13:46:19 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: from [213.227.193.75] (HELO [192.168.0.178]) by mail.alkar.net (CommuniGate Pro SMTP 4.3.9) with ESMTP id 422953400; Tue, 10 Jan 2006 15:46:17 +0200 Message-ID: <43C3D728.10008@oxygen.az> Date: Tue, 10 Jan 2006 15:47:52 +0000 From: Tofik Suleymanov User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas References: <43BFF797.9070600@oxygen.az> <20060107213025.GB2175@flame.pc> In-Reply-To: <20060107213025.GB2175@flame.pc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: kernel debugging question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2006 13:46:21 -0000 Giorgos Keramidas wrote: >On 2006-01-07 17:17, Tofik Suleymanov 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 > > kdb_enter(NULL); /* Enter without a message */ > >or > > #include > > kdb_enter("Forced into debugger by Giorgos"); > > > Thank you :)