[Bug 191930] New: Bring kernel debug files into line with userland standalone debug
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jul 17 20:06:14 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191930
Bug ID: 191930
Summary: Bring kernel debug files into line with userland
standalone debug
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: emaste at freebsd.org
A single src.conf(5) knob, WITH_DEBUG_FILES=yes, enables userland standalone
debug. Setting it enables a few things:
- CFLAGS has -g added to generate debug data during compilation
- Binaries and libraries are built as a .full version which includes debug
- The .full file is converted into one with the debug data stripped out (no
extra extension), and a separate debug data file (.debug extension)
- Debug data is installed under /usr/lib/debug/...
Kernel standalone debug files have a few differences:
- The -g flag has to be added via the kernel config file (it is set in GENERIC)
- WITHOUT_KERNEL_SYMBOLS will avoid splitting the kernel objects
- Extensions are different (.debug for the full object, .symbols for the debug
data)
- Debug data is installed in the same directory as the kernel objects, in
/boot/kernel
The last point is an annoyance, as /boot may not be a very large filesystem
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list