[PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files
Ed Maste
emaste at freebsd.org
Wed Mar 27 00:56:55 UTC 2013
On 22 December 2012 11:46, Ed Maste <emaste at freebsd.org> wrote:
> When this knob is set standalone debug files for shared objects are
> built and installed in /usr/lib/debug/<so pathname>.debug. GDB
> searches this path for debug data.
I'm picking this up again - here is a new version of the patch, which
should address the base/ports issue and other problems. Here's what
it does:
- Add WITH_DEBUG_FILES src.conf knob to control standalone debug file
generation, instead of using standalone files whenever DEBUG_FLAGS is set.
- Switch debug file extension from .symbols to .debug, for consistency with
other users of this feature.
- Store debug files under /usr/lib/debug for base system components, and in
a .debug subdirectory for other share/mk consumers.
- Switch gdb to use the default standalone debug directory of
/usr/lib/debug.
Also available at
http://people.freebsd.org/~emaste/patches/shlib-debug-symbols.diff.
Changes to bsd.prog.mk will come after.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shlib-debug-symbols.diff
Type: application/octet-stream
Size: 8019 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20130326/239fa4e0/attachment.obj>
More information about the freebsd-hackers
mailing list