From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 8 10:05:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DD5F16A4E6 for ; Tue, 8 Aug 2006 10:05:21 +0000 (UTC) (envelope-from shriek.007@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A8D543D66 for ; Tue, 8 Aug 2006 10:05:13 +0000 (GMT) (envelope-from shriek.007@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so217142nfe for ; Tue, 08 Aug 2006 03:05:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=uGbfM75mmnHpfRI7Gu+VUXmBdZL09ajOojGslO2inHU7IHMjC8OvaYWHhpvsQRb6XZVCqHsu2oRa66q6fmeNMnRtxV9SgRNCiPPt2BFIPfWpV4R/VlmMWEgPGO/ZenfVTQeKXXV0utJSAuDAjRSm28vznf57fbkYZiupZQDiLdw= Received: by 10.78.175.8 with SMTP id x8mr2685305hue; Tue, 08 Aug 2006 03:05:12 -0700 (PDT) Received: by 10.78.118.14 with HTTP; Tue, 8 Aug 2006 03:05:12 -0700 (PDT) Message-ID: <3ce33f6c0608080305p1ea53072hfb5478de91c4f029@mail.gmail.com> Date: Tue, 8 Aug 2006 15:35:12 +0530 From: Shriek To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to debug a daemon during its initialization :: gdb 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: Tue, 08 Aug 2006 10:05:21 -0000 I need to use gdb to check some initialization functions which are called during the time when the daemon is stopped and restarted ... I usually do gdb but this will not help when I am stopping the daemon and then restarting ... how do I use gdb to this effect ?