[PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

Ed Maste emaste at freebsd.org
Sat Dec 22 16:46:03 UTC 2012


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.

The -g flag is automatically added to CFLAGS if debug files are enabled
(but the shared objects are still installed stripped, if DEBUG_FLAGS is
not set).
---
This is a refinement of my earlier change for shared object standalone
debug.  This patch also includes the following changes:

- Change GDB's standalone debug file path to the default /usr/lib/debug.

- Change debug file extension from 'symbols' to 'debug', in line with
  GDB's documentation.  I initially followed the kernel build example
  in choosing .symbols, but .debug more accurately represents the use
  of these files.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usr_lib_debug.diff
Type: text/x-diff
Size: 6866 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20121222/2f1ffc63/attachment.diff>


More information about the freebsd-hackers mailing list