From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 23 21:47:14 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 0C8EF4F1; Sun, 23 Dec 2012 21:47:14 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49]) by mx1.freebsd.org (Postfix) with ESMTP id ABB1F8FC13; Sun, 23 Dec 2012 21:47:13 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id l10so6407183oag.36 for ; Sun, 23 Dec 2012 13:47:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0+uKk8fLox5agYsGWr6jDNPQPSKd1VuNhXZlUtk8xvs=; b=GN50d6C0ocLOrK2W/bR0+NzEFiTWLB8CUYC8F+qhQhKqUtF8rYQQ0fv42xCfz3boUb c/68Nej5smhTqfPOcBVwkb9/auxzPTQaJ4pMSN3LIdwnfcZMgUZhUtSNFWOdYa58UAqD Ld1jlfR6LN99H+9zCZ/OHg26hvVV47frrG63CeQLQjgIvy3PbugDBBS6t2oY7/N5zNio RHRXLJHRZeNJ01MKM3YFn6y4+zGVD1EJ1zY6yX9CKt+pjjZCKXntaaXlUHheqTVAH5I3 JAU20hoicVvolURdsWYSwkoL0dXIdRjgcBfSHw7mVa6zwhGIb5Amb7gorET8Nt8YwjJ/ rc/A== MIME-Version: 1.0 Received: by 10.60.172.164 with SMTP id bd4mr4540394oec.51.1356299227418; Sun, 23 Dec 2012 13:47:07 -0800 (PST) Received: by 10.76.143.33 with HTTP; Sun, 23 Dec 2012 13:47:07 -0800 (PST) In-Reply-To: References: <20121222164602.GB32022@sandvine.com> <1Tmb5f-000Jy5-CT@internal.tormail.org> <50D684D7.8050906@mu.org> Date: Sun, 23 Dec 2012 13:47:07 -0800 Message-ID: Subject: Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files From: Garrett Cooper To: Ed Maste Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org 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 21:47:14 -0000 On Sun, Dec 23, 2012 at 8:26 AM, Ed Maste wrote: > 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. Crazy idea: why not just provide the user with an example .gdbinit that does these things? For Isilon it makes more sense to tack on additional paths (which we already do in our internal directions), and others potentially are doing similar *shrugs*, so as long as the example makes sense, I'd stick with it. I would probably setup things in such a way that the old default is kept though because I'm sure that there's someone out there that's using it (even it it's not *the best* default per how we prefix things in ports). Thanks! -Garrett