From owner-freebsd-questions@FreeBSD.ORG Sat Jan 7 21:32:00 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 5476516A420 for ; Sat, 7 Jan 2006 21:32:00 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23BDE43D48 for ; Sat, 7 Jan 2006 21:31:51 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (patr530-a221.otenet.gr [212.205.215.221]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-8) with ESMTP id k07LVmQQ005267; Sat, 7 Jan 2006 23:31:49 +0200 Received: by flame.pc (Postfix, from userid 1001) id 52E4411856; Sat, 7 Jan 2006 23:30:25 +0200 (EET) Date: Sat, 7 Jan 2006 23:30:25 +0200 From: Giorgos Keramidas To: Tofik Suleymanov Message-ID: <20060107213025.GB2175@flame.pc> References: <43BFF797.9070600@oxygen.az> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43BFF797.9070600@oxygen.az> 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: Sat, 07 Jan 2006 21:32:00 -0000 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");