From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 17:05:34 2011 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 48A6C106566B for ; Wed, 28 Sep 2011 17:05:34 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0334E8FC0C for ; Wed, 28 Sep 2011 17:05:33 +0000 (UTC) Received: by ywp17 with SMTP id 17so8319814ywp.13 for ; Wed, 28 Sep 2011 10:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=RL2Wlz23NPoRoFmhAn5hM541rGvamBVbWb+dl2i4Ojc=; b=wLhde/4TNa6uZsoz/A5l4Cly5jxUJvkpEptUHXA//Rzvqsog0zJPvgfUmo3oyOxOeA hv6kKsjGVSk6RiBlm79HLX/sgQKm+b5OFtPinMrcSfgqsNwBTp7CDR5WOSA10X4KGJ4D g335D748TPAqTBQe6BBFwgfkEb/7sSn/yxMbs= Received: by 10.236.123.37 with SMTP id u25mr58777374yhh.50.1317228083201; Wed, 28 Sep 2011 09:41:23 -0700 (PDT) Received: from pikachu.uwaterloo.ca (129-97-197-61.uwaterloo.ca. [129.97.197.61]) by mx.google.com with ESMTPS id x12sm39013285yhi.10.2011.09.28.09.41.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Sep 2011 09:41:21 -0700 (PDT) Date: Wed, 28 Sep 2011 12:40:55 -0400 From: Mark Johnston To: Kostik Belousov Message-ID: <20110928164055.GA2624@pikachu.uwaterloo.ca> References: <20110928144759.GC1511@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110928144759.GC1511@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Hackers , Ryan Stone , Arnaud Lacombe Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] 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: Wed, 28 Sep 2011 17:05:34 -0000 On Wed, Sep 28, 2011 at 05:47:59PM +0300, Kostik Belousov wrote: > On Wed, Sep 28, 2011 at 10:30:06AM -0400, Ryan Stone wrote: > > You might be interested in this PR: > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=153157&cat= > > > > This does the same thing for userland .symbols files, and teaches gdb > > how to find them. > > The patch is not committable as is. In particular, the patch hardcodes > the /usr/src as the source location. > > I think the right thing to do is to install the stripbin.sh into usr/bin, > might be under the name like freebsd_stripbin. Also, I think the script > should use the full pathes to the utilities, but I am not sure about > this part, esp. in regard the cross-build. Ok, I'll look at fixing this. At a quick glance, I don't see any way to replace the hardcoded /usr/src with a variable, since bsd.own.mk can be included from anywhere within the tree. So maybe installing stripbin.sh to /usr/bin is the only way to go. I'll also do some testing with cross-builds and send a revised patch to the PR. -Mark