From owner-freebsd-stable@FreeBSD.ORG Sat Aug 7 09:05:36 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DAC41065670 for ; Sat, 7 Aug 2010 09:05:36 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id BCFFE8FC12 for ; Sat, 7 Aug 2010 09:05:35 +0000 (UTC) Received: by iwn10 with SMTP id 10so2558499iwn.13 for ; Sat, 07 Aug 2010 02:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=f+cplXvM5hF36ELHzGB606P8mG2W7QEKUQxbzoJNzrg=; b=JNix8LQc1zwPWlRN9cfl5+pbyTu/DHguERlyWrlokaG6wpEmHLhzLPkDl3oUgxPC7L K1QyntztfPOEwQe7u79Q/Dy02g6ntyzMlJ0wNLutwwI4PFKLps+xSbvFkZ+leg+ut8Qb jb2ha98FOoZQBSE8vdaiakD/6NpTKNYQYtkqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=WEwKQGqM6OOEFmWWfcOAdt7Q/aYgqykQozio/IqY0P0ocCTpjNwMcNk47JmHQwFK4Q 7g4F4iNifKOO9s6W29Uku1Ry50kre4l4p2E4tNyre9Z++vlmCospZTbjdc4R1BM2SiNq QY40YwZ4OGoHrsYfc3PmftEbJh/hMui87HefA= Received: by 10.231.148.83 with SMTP id o19mr15543853ibv.112.1281171935010; Sat, 07 Aug 2010 02:05:35 -0700 (PDT) Received: from centel.dataix.local (adsl-99-19-46-227.dsl.klmzmi.sbcglobal.net [99.19.46.227]) by mx.google.com with ESMTPS id g31sm2155990ibh.10.2010.08.07.02.05.32 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Aug 2010 02:05:33 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C5D21DB.4040400@dataix.net> Date: Sat, 07 Aug 2010 05:05:31 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100806 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Oliver Fromme References: <201008061019.o76AJUQw031485@lurza.secnetix.de> In-Reply-To: <201008061019.o76AJUQw031485@lurza.secnetix.de> X-Enigmail-Version: 1.1.2 OpenPGP: id=89D8547E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Kernel symbol file alternate location X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2010 09:05:36 -0000 On 08/06/2010 06:19, Oliver Fromme wrote: > Kostik Belousov wrote: > > If you keep /usr/obj around, you do not need symbol files at all, > > and INSTALL_NODEBUG?=true in make.conf is enough. You can always > > use kernel.debug and modules with debugging symbols from build > > directory for kgdb. > > OK ... But that won't work for /boot/kernel.old. > > Best regards > Oliver > kernel /boot/kernel symbols /boot/sym When kernel is upgraded old kernel and sym becomes /boot/kernel.old /boot/sym.old If I remember correctly in a recent backtrace that I have tried when I used /boot/kernel.old/kernel the symbols ended up loading from /boot/kernel anyway and not the kernel.old directory. So whether these are moved to a different location or not I do not believe it will make that much of a difference on where they are loaded from. I may be wrong about this. IMO creating symlink's is going to be a bad way to handle this and adjusting the respective utilities that use the symbols is a much more permanent and failure safe way to go about this. Besides moving the location of the symbols and having a debugging utility or crash dump utility fail is not really a mission critical failure and would be able to be found and corrected fairly quick among the amount of people that are using these. $0.02 US Regards, -- jhell,v