From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 6 23:21:18 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 77C47106566B for ; Sat, 6 Nov 2010 23:21:18 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 29F0E8FC17 for ; Sat, 6 Nov 2010 23:21:17 +0000 (UTC) Received: by gxk9 with SMTP id 9so2913200gxk.13 for ; Sat, 06 Nov 2010 16:21:17 -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=DTFOWmaZNWLtqou+ZIrjLtkPs4SSfGTCzsv0jOxwCkg=; b=Kaic1zTcgy8wAkRZfLDaeRBD+PiImBsJsiQWVvADeSTJwl1Xi9Pya1iGNotl3ioUfL RmSxhhw9AHtiP1+pXcVyE7CLvkkEPty2XhJoaanhe046gWW12M+drHt4KW4jHllWfCd7 RCOuMKL5FqEx6haqe0hy3H7oFju/ChgyUfz04= 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=Q9Mm0EaTxsqfrOK5iA4tx0uRoVBElfSwFxJiQykOMaeybJAwDFAYvw7GY+OARwVMxZ /eZZ3sluDc03kvy4xhzmogV+4Sb1pFfrPFe6g8rz/jGb1wY325PY03cqS8WhAFMFh6UI ZIJoeOpS6S+2cxymw0vyVgo8vP4vAjqGjufAE= Received: by 10.101.167.20 with SMTP id u20mr1134295ano.108.1289085676275; Sat, 06 Nov 2010 16:21:16 -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 g18sm3615734anh.38.2010.11.06.16.21.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Nov 2010 16:21:15 -0700 (PDT) Date: Sat, 6 Nov 2010 19:20:58 -0400 From: Mark Johnston To: Ed Maste Message-ID: <20101106232058.GB1420@mark-laptop-bsd.mark-home> References: <20101105191443.GD1437@mark-laptop-bsd.mark-home> <20101105204519.GA2843@tops> <20101106173620.GA45793@sandvine.com> <20101106175603.GL2392@deviant.kiev.zoral.com.ua> <20101106180420.GA50159@sandvine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101106180420.GA50159@sandvine.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Kostik Belousov , freebsd-hackers@freebsd.org, Gleb Kurtsou Subject: Re: Userland debug symbols directory 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, 06 Nov 2010 23:21:18 -0000 On Sat, Nov 06, 2010 at 02:04:20PM -0400, Ed Maste wrote: > On Sat, Nov 06, 2010 at 07:56:03PM +0200, Kostik Belousov wrote: > > > On Sat, Nov 06, 2010 at 01:36:20PM -0400, Ed Maste wrote: > > > On Fri, Nov 05, 2010 at 10:45:19PM +0200, Gleb Kurtsou wrote: > > > > > > > I like the idea a lot, but why not to leave symbol files in /usr/obj, > > > > > > The application where this is most useful (and why we implemented it > > > originally) is the case where /usr/obj isn't available - for instance, > > > a binary installation other than where the source tree was built. If > > > you're going to keep /usr/obj around anyway then you can get most of > > > the benefit by just keeping the unstripped binaries / libs in there, > > > no? > > Not that easy, since you have to arrange to use libraries from obj/, > > by LD_LIBRARY_PATH etc. > > > > I fully support the work to install symbol files, and it should go > > into /usr, might be /usr/lib/debug. Possibly, some change to gdb (config) > > is required. > > > Yeah, I just mean that using LD_LIBRARY_PATH or whatever is still a lot > easier than realizing you don't have the debug info at all, and trying > to rebuild an identical binary or library with debug. > > I definitely want the changes to build and install the symbol files in > the FreeBSD tree. I don't have a huge concern over the exact path we > pick. > > -Ed FWIW, the default path is #defined in gnu/usr.bin/gdb/arch/*/config.h as DEBUGDIR. I suppose that could be changed on a system-by-system basis using a global configuration file, but apparently such a file needs to be defined at compile time: http://sourceware.org/gdb/onlinedocs/gdb/System_002dwide-configuration.html#System_002dwide-configuration I don't have a strong opinion on the location, /usr/lib/debug seems fine to me. -Mark