From owner-freebsd-current@FreeBSD.ORG Wed Oct 29 14:18:07 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E5CDF7C; Wed, 29 Oct 2014 14:18:07 +0000 (UTC) Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C56D5E7E; Wed, 29 Oct 2014 14:18:06 +0000 (UTC) Received: by mail-ig0-f172.google.com with SMTP id a13so1324567igq.17 for ; Wed, 29 Oct 2014 07:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=oV462S6zsZba/7Nq1Tk83Nh+iI6CX3qXEeO7eh8vVRM=; b=j7lVR4Lq4KXLk9tvv7glfrqtYF2QzyLvs6cKtz9PWPsvLidBEmO5wnsoG070z8/GPk cngZFExsdjHZSOpHIuysgSHrCUrMzCbJRmBEuDIu4j3mgF4klyy7R0/sBXtHkjfTapmh Bs+q9NyPwKSnQLS2GLLcnSXUybh/Y7vqe4HgmnyW3jigUTs3Je6Pk8hOrGxHZp0p4fUz TBcYahuf1y1t1fXoOAReOmtGhR5Vp+eCtMQpMix2sOMxhcDf1TiQkYeEfDn9qoV44z2v AFgfv4lD0Bwcf98WnesxCzrLkI1Q1oLE4ZRuKqoXYWA6yzGcgxj69yRGeoxfGG24AYl9 m2Zg== X-Received: by 10.50.79.232 with SMTP id m8mr38423351igx.11.1414592275112; Wed, 29 Oct 2014 07:17:55 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.29.132 with HTTP; Wed, 29 Oct 2014 07:17:33 -0700 (PDT) In-Reply-To: References: From: Ed Maste Date: Wed, 29 Oct 2014 10:17:33 -0400 X-Google-Sender-Auth: mlAFz4FItTbExGJPmXuExvOGsnI Message-ID: Subject: Re: HEADS UP: Standalone kernel debug files moving out of /boot/kernel/ To: David Chisnall Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Kevin Oberman , FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2014 14:18:07 -0000 On 29 October 2014 05:05, David Chisnall wrote: > On 29 Oct 2014, at 03:11, Ed Maste wrote: > >> /usr/lib/debug is the standard location for standalone debug data >> established by GDB, and seems like a decent enough location. I'll make >> sure to update the man page. > > Do gdb and lldb also look in /usr/local/lib/debug? If not, it would be g= reat if we could at least teach lldb to do this so that we can start thinki= ng about splitting debug info into separate packages for ports (and providi= ng it as an optional install for everything). Not yet, but it's trivial to add for at least LLDB. My end goal is what you describe - kernel, base system userland, and packages/ports can all provide standalone debug packages which will install to a consistent and well-known location, and be picked up automatically by the debugger. Part of this project depends on moving past our old binutils though, so we can start using the build-id ELF note to link the executable or library with its associated debug data.