From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 23 16:26:56 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A996EFC for ; Sun, 23 Dec 2012 16:26:56 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-ia0-f175.google.com (mail-ia0-f175.google.com [209.85.210.175]) by mx1.freebsd.org (Postfix) with ESMTP id 59C978FC14 for ; Sun, 23 Dec 2012 16:26:56 +0000 (UTC) Received: by mail-ia0-f175.google.com with SMTP id z3so5284549iad.6 for ; Sun, 23 Dec 2012 08:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; bh=uyWrFfwEvGrV+xM8GrdOwRd31qkOMFFa7mk3w9/VtVI=; b=tCCXWSPlIx1d0kCU2+tf/Zy96Qwf8N5st4t0n3zNfje45hlJPti5NG0ExT11xpzX06 5DDR4FYbrSbvP3CDazMgBGJU5MS3MlaZUSgcAcniJOD6kXPlVBpAuNL3Andx0MlARNse utgYcDC/WnZJsQfTxEl5r1oNZXTOqTTtWbfYkSCAZ8ORUVn3Vmqsp9wZyQv24hjQw6EU aWTDun8SJD3jM5TVTS1v96EwVOt0jsKIeI9FvzdDxf65Pa6TPFEgXI0OfLkdIcuclp2X eS7HBuHKwRm+usIkJaJDNmrnlCHpUaMSENfS70ZlXPUKR9vAnoExFCJQbOYzUKRVOK4t 7xoA== MIME-Version: 1.0 Received: by 10.50.222.226 with SMTP id qp2mr13659928igc.103.1356280015664; Sun, 23 Dec 2012 08:26:55 -0800 (PST) Sender: carpeddiem@gmail.com Received: by 10.50.112.134 with HTTP; Sun, 23 Dec 2012 08:26:55 -0800 (PST) In-Reply-To: <50D684D7.8050906@mu.org> References: <20121222164602.GB32022@sandvine.com> <1Tmb5f-000Jy5-CT@internal.tormail.org> <50D684D7.8050906@mu.org> Date: Sun, 23 Dec 2012 11:26:55 -0500 X-Google-Sender-Auth: PDz0thcaE7TK5UqalsHsZAZZPYw Message-ID: Subject: Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files From: Ed Maste Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 16:26:56 -0000 On 22 December 2012 23:13, Alfred Perlstein wrote: > I have a patch for this. I am building world to see what happens, if you > want to try it, or comment on it, please let me know. > > Changes are: > base DEBUGDIR on LIBDIR for ports > create intermediate directories for debug objs. Note that just moving ports debug data to /usr/local/lib/debug/... won't work since GDB won't search there. We could teach it to search a list of paths and include /usr/local/lib/debug and /usr/lib/debug, or perhaps a symlink under /usr/local/lib. We could also use a .debug subdirectory for ports and other users of bsd.lib.mk - so for example /usr/local/lib/libfoo.so would have debug info in /usr/local/lib/.debug/libfoo.so.debug.