Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2012 11:26:55 -0500
From:      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:  <CAPyFy2Ci1iGjzOdErDRippVua6cagsgjGyH0_KpnegmVMRzkpA@mail.gmail.com>
In-Reply-To: <50D684D7.8050906@mu.org>
References:  <20121222164602.GB32022@sandvine.com> <1Tmb5f-000Jy5-CT@internal.tormail.org> <50D684D7.8050906@mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2Ci1iGjzOdErDRippVua6cagsgjGyH0_KpnegmVMRzkpA>