Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2012 13:47:07 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files
Message-ID:  <CAGH67wSCy%2BhACN07XANAO_wWrHvPYbZ2U2P8x15XwCH206B%2B3Q@mail.gmail.com>
In-Reply-To: <CAPyFy2Ci1iGjzOdErDRippVua6cagsgjGyH0_KpnegmVMRzkpA@mail.gmail.com>
References:  <20121222164602.GB32022@sandvine.com> <1Tmb5f-000Jy5-CT@internal.tormail.org> <50D684D7.8050906@mu.org> <CAPyFy2Ci1iGjzOdErDRippVua6cagsgjGyH0_KpnegmVMRzkpA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 23, 2012 at 8:26 AM, Ed Maste <emaste@freebsd.org> wrote:
> On 22 December 2012 23:13, Alfred Perlstein <bright@mu.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wSCy%2BhACN07XANAO_wWrHvPYbZ2U2P8x15XwCH206B%2B3Q>