From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 11 15:16:39 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5939B1065690 for ; Wed, 11 Mar 2009 15:16:39 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-fx0-f158.google.com (mail-fx0-f158.google.com [209.85.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id DEDAC8FC24 for ; Wed, 11 Mar 2009 15:16:38 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: by fxm2 with SMTP id 2so41477fxm.43 for ; Wed, 11 Mar 2009 08:16:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.86.51.10 with SMTP id y10mr6049396fgy.9.1236783284206; Wed, 11 Mar 2009 07:54:44 -0700 (PDT) In-Reply-To: <20090311085138.23982deb8g8234w0@webmail.leidinger.net> References: <20090311085138.23982deb8g8234w0@webmail.leidinger.net> Date: Wed, 11 Mar 2009 15:54:44 +0100 Message-ID: From: =?ISO-8859-1?Q?Marius_N=FCnnerich?= To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Nate Eldredge , freebsd-hackers@freebsd.org, vasanth raonaik Subject: Re: Debugging init process. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 15:16:44 -0000 On Wed, Mar 11, 2009 at 08:51, Alexander Leidinger wrote: > Quoting Nate Eldredge (from Tue, 10 Mar 2009 > 19:02:16 -0700 (PDT)): > >> On Tue, 10 Mar 2009, vasanth raonaik wrote: >> >>> Hello Team, >>> >>> I need to debug init process. I am not able to attach init to gdb and i= t >>> throws >> >> As others mentioned, this is explicitly disabled. =A0You could re-enable= it >> by hacking the kernel, but it could cause other unexpected problems. >> >> Alternatively, there's always "printf debugging". >> >> What is wrong with init, that you need to debug it? =A0It's a fairly sim= ple >> program that's been around for a long time and should be pretty stable. > > If this is on -current and depending on the problem, dtrace may be an opt= ion > (I don't know if it special-cases init or not). > DTrace is not available for userland processes yet.