Date: Thu, 17 Jul 2014 20:06:14 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 191930] New: Bring kernel debug files into line with userland standalone debug Message-ID: <bug-191930-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: emaste@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191930-8>