From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 30 14:41:35 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 E0A0E1065675 for ; Sat, 30 Oct 2010 14:41:35 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id A0B5F8FC14 for ; Sat, 30 Oct 2010 14:41:35 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.0.694.0; Sat, 30 Oct 2010 10:41:35 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id BDD2233C00; Sat, 30 Oct 2010 10:41:34 -0400 (EDT) Date: Sat, 30 Oct 2010 10:41:34 -0400 From: Ed Maste To: Mark Johnston Message-ID: <20101030144134.GA35688@sandvine.com> References: <20101029191827.GC1443@mark-laptop-bsd.mark-home> <20101029233900.GC2392@deviant.kiev.zoral.com.ua> <20101030015826.GA1305@mark-laptop-bsd.mark-home> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20101030015826.GA1305@mark-laptop-bsd.mark-home> User-Agent: Mutt/1.4.2.1i Cc: Kostik Belousov , 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 14:41:36 -0000 On Fri, Oct 29, 2010 at 09:58:26PM -0400, Mark Johnston wrote: > 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. Ahh yes, the way it was being done (before the change to build .symbols files) is that the buildworld was done using a make.conf with DEBUG_FLAGS=-g while the installworld omitted it; the /usr/obj tree then had the debug information but the installed binaries and libraries did not. It looks like the .symbols change built on top of this. -Ed