From owner-freebsd-current@FreeBSD.ORG Thu Feb 12 14:15:45 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A098A24A; Thu, 12 Feb 2015 14:15:45 +0000 (UTC) Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 567287DF; Thu, 12 Feb 2015 14:15:45 +0000 (UTC) Received: by mail-qc0-f181.google.com with SMTP id p6so8541631qcv.12; Thu, 12 Feb 2015 06:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=orVw58OQZ/SZpeIqPJn+nqMD8vlaLz5jCQEpl1790xA=; b=AA2/3FikQFS73aqT/Yi8MHxcnOfPc8v3IZEAZAn2d2NkiQUuUnZcYz5Lc/zjjNg20x 4KeJvv9xYghaEZfO0PoeftXJL2Zj7B1pX/RnaTJBgi8v19SRWBObB6tRXk+cDaPQl4nh f8rDIU1hoAFMZu34GOsZES6mhRdkuccanOYlQTX5IwuOEfbYmCQJpDplbXTmvu2Yx60L M4GNQjhVJYLJMmcoX2CyzS4eWPgeYO6KbAMCBJeBHm1EAd0KhlirWSrXgnlbW0zt5Tu7 AYZ9vCFbWgYwGLFiNosAGA4g49LXtlm8CRUnkw9ehfze3KnOUOo8nkoveYmSGdHYL/pF trBg== X-Received: by 10.229.197.134 with SMTP id ek6mr11173265qcb.21.1423750544463; Thu, 12 Feb 2015 06:15:44 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.140.39.209 with HTTP; Thu, 12 Feb 2015 06:15:24 -0800 (PST) In-Reply-To: <20150212132124.GM1302@hub.FreeBSD.org> References: <20150212023912.GG1302@hub.FreeBSD.org> <20150212091219.GD34251@kib.kiev.ua> <20150212132124.GM1302@hub.FreeBSD.org> From: Ed Maste Date: Thu, 12 Feb 2015 09:15:24 -0500 X-Google-Sender-Auth: DEMijqriyYDuOW253kWa0-66aIk Message-ID: Subject: Re: HEADS-UP: Enabling WITH_DEBUG_FILES by default To: Glen Barber Content-Type: text/plain; charset=UTF-8 Cc: Konstantin Belousov , FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2015 14:15:45 -0000 On 12 February 2015 at 08:21, Glen Barber wrote: > On Thu, Feb 12, 2015 at 11:12:19AM +0200, Konstantin Belousov wrote: >> >> IMO having debugging information for all binaries is just an overkill. >> Nobody debugs ls on regular basis, while debug information for C runtime >> is needed often. >> > > I thought there was one for libraries and rtld only, but do not see any > trace of it now. No, there was never a separate knob. I first added standalone debug support to bsd.lib.mk, so there was a time that WITH_DEBUG_FILES=yes provided .debug files for libraries but not binaries. Note that rtld uses bsd.prog.mk and so it initially did not have debug data. We could introduce knobs like WITH_LIBRARY_DEBUG_FILES and WITH_BINARY_DEBUG_FILES for bsd.lib.mk / bsd.prog.mk, but we'd need an additional special case to build rtld debug to make a "runtime" debug package. The primary goal of this work is building debug data for releases. The debug files will not be included on the install media, but will be available for installation afterwards in order to debug a crash. For that packaging we want a 1:1 relationship between base system packages and -dbg packages. We can work backwards from there to help decide what the knobs should be.