[PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

Ed Maste emaste at freebsd.org
Sun Dec 23 16:26:56 UTC 2012


On 22 December 2012 23:13, Alfred Perlstein <bright at 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.


More information about the freebsd-hackers mailing list