From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 30 01:58:44 2010 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 6C5A5106566C for ; Sat, 30 Oct 2010 01:58:44 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 21B818FC16 for ; Sat, 30 Oct 2010 01:58:43 +0000 (UTC) Received: by gya6 with SMTP id 6so2548149gya.13 for ; Fri, 29 Oct 2010 18:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=Khnn+X0clG/+aFwXLypJsEbDPjyroIsG4AXupb4gzDs=; b=Xoqn/tZ+dCm5kFEhy7ukX9S/HD6uKopl2r/otIKwr81yskzZCqalo7iYLZGgS8L3mf VFmqJPRJ2T2nEsKR8IGlUQyp/qXCoJqLp59M9FUpwkMw5hbB8ny1haQTXaexsDGgJIL6 CDc6QdRvErK2oFg8kYPWvjSz8V78iuey6R/Uw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=SFlXB/9mMplXUVx7kzRYDTUyM/8Fg3Rng17jijUe8tCPUUbNpVpMdlcelmbz+Ck+r3 GWfyKKeczvSiaFh5pBms7BDujS1986IIQ3MyLzqUQPDZjFj9ymsg8sNNw8sRav9QTXgt ynIYjjC+2sZ4eX4JjFJaNt1619wQNB2t4+p7I= Received: by 10.151.26.14 with SMTP id d14mr23282985ybj.266.1288403923376; Fri, 29 Oct 2010 18:58:43 -0700 (PDT) Received: from mark-laptop-bsd.mark-home (CPE00222d75bcd8-CM00222d75bcd5.cpe.net.cable.rogers.com [99.233.53.36]) by mx.google.com with ESMTPS id z33sm2263289yhc.33.2010.10.29.18.58.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Oct 2010 18:58:42 -0700 (PDT) Date: Fri, 29 Oct 2010 21:58:26 -0400 From: Mark Johnston To: Kostik Belousov Message-ID: <20101030015826.GA1305@mark-laptop-bsd.mark-home> References: <20101029191827.GC1443@mark-laptop-bsd.mark-home> <20101029233900.GC2392@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101029233900.GC2392@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: Generating userland debugging symbols 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: Sat, 30 Oct 2010 01:58:44 -0000 On Sat, Oct 30, 2010 at 02:39:00AM +0300, Kostik Belousov wrote: > I do think that something like this would be useful. But, shouldn't > the DEBUG_FLAGS be also involved in the patch ? The goal would be > to have debug symbols for userland staff. esp. the libraries, > handled in a similar manner to kernel symbols. > > But I do like the intent of keeping the symbols in the separate directory. Yes, you're right. What I would probably do is have make(1) set DEBUG_FLAGS=-g automatically if WITH_DEBUG_SYMBOLS is defined in /etc/src.conf. I've been using the source tree at my work, which has another Makefile and some other scripts on top of the FreeBSD build system, so they're probably doing some things I don't know about. Based on what I've seen however, it shouldn't be too much work to port the necessary changes over. -Mark